diff options
author | Sampo Savolainen <v2@iki.fi> | 2006-01-28 23:45:06 +0000 |
---|---|---|
committer | Sampo Savolainen <v2@iki.fi> | 2006-01-28 23:45:06 +0000 |
commit | 60dc0ef48f0b4d56faf5b80242d85549e0791628 (patch) | |
tree | 59087b9d307fda765ffc3eaea82442d34ea5b0f6 /gtk2_ardour/actions.cc | |
parent | fd4c2310412fbdba85a5decd6b9d7f7b8962b8a8 (diff) |
Edit menu reorganization, abort if problems with ardour.menus.
git-svn-id: svn://localhost/trunk/ardour2@304 d708f5d6-7413-0410-9779-e7cbd77b26cf
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> |