diff options
Diffstat (limited to 'gtk2_ardour/actions.cc')
-rw-r--r-- | gtk2_ardour/actions.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc index c60fa824dd..9f8c95ce2c 100644 --- a/gtk2_ardour/actions.cc +++ b/gtk2_ardour/actions.cc @@ -65,13 +65,21 @@ ActionManager::init () std::cout << "Loading UI definition file " << ui_file << std::endl; + bool loaded = false; + try { ui_manager->add_ui_from_file (ui_file); + loaded = true; } catch (Glib::MarkupError& err) { error << "badly formatted UI definition file" << endmsg; } catch (...) { error << "Ardour menu definition file not found" << endmsg; } + + if (!loaded) { + error << "ardour will not work without a valid ardour.menus file" << endmsg; + exit(1); + } } RefPtr<Action> |