mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
if the startupFSM detects a fatal error during startup, at least tell the user
This commit is contained in:
parent
88d4145b02
commit
fd78ea90b8
1 changed files with 12 additions and 1 deletions
|
|
@ -524,8 +524,19 @@ ARDOUR_UI::sfsm_response (StartupFSM::Result r)
|
||||||
DEBUG_TRACE (DEBUG::GuiStartup, string_compose (X_("startup FSM response %1\n"), r));
|
DEBUG_TRACE (DEBUG::GuiStartup, string_compose (X_("startup FSM response %1\n"), r));
|
||||||
|
|
||||||
switch (r) {
|
switch (r) {
|
||||||
case StartupFSM::ExitProgram:
|
case StartupFSM::ExitProgram: {
|
||||||
|
std::stringstream str;;
|
||||||
|
dump_errors (str, 10);
|
||||||
|
std::string msg (string_compose (_("<span font_size=\"large\" font_weight=\"bold\">Something went seriously wrong. %1 cannot continue.</span>\n\n"
|
||||||
|
"Here are a few hints at what might be wrong:\n\n%2"),
|
||||||
|
PROGRAM_NAME,
|
||||||
|
str.str()));
|
||||||
|
ArdourMessageDialog d (msg, true);
|
||||||
|
d.set_title (_("Hmm. Not Good"));
|
||||||
|
d.run();
|
||||||
|
|
||||||
queue_finish ();
|
queue_finish ();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case StartupFSM::LoadSession:
|
case StartupFSM::LoadSession:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue