13
0

fix 0096aa5 (at least for mingw)

This commit is contained in:
Robin Gareus 2015-03-12 17:56:06 +01:00
parent 9ec393422f
commit 3bd3dc04b1

View File

@ -203,20 +203,24 @@ console_madness_end ()
} }
} }
#if defined(NDEBUG) && !defined(RDC_BUILD)) static void command_line_parse_error (int *argc, char** argv[]) {}
// Since we don't ordinarily have access to stdout and stderr with
// an MSVC app, let the user know we encountered a parsing error. #elif (defined(COMPILER_MSVC) && defined(NDEBUG) && !defined(RDC_BUILD))
static void
command_line_parse_error (int* argc, char** argv[]) // these are not used here. for MSVC see gtk2_ardour/msvc/winmain.cc
{ static void console_madness_begin () {}
Gtk::Main app(&argc, &argv); // Calls 'gtk_init()' static void console_madness_end () {}
Gtk::MessageDialog msg (_("\n Ardour could not understand your command line "), static void command_line_parse_error (int *argc, char** argv[]) {
false, MESSAGE_ERROR, BUTTONS_CLOSE, true); // Since we don't ordinarily have access to stdout and stderr with
msg.set_title (_("An error was encountered while launching Ardour")); // an MSVC app, let the user know we encountered a parsing error.
msg.run (); Gtk::Main app(&argc, &argv); // Calls 'gtk_init()'
Gtk::MessageDialog dlgReportParseError (_("\n Ardour could not understand your command line "),
false, MESSAGE_ERROR, BUTTONS_CLOSE, true);
dlgReportParseError.set_title (_("An error was encountered while launching Ardour"));
dlgReportParseError.run ();
} }
#endif
#else #else
static void console_madness_begin () {} static void console_madness_begin () {}