From c66955386ecfb86b3dd2b137a8e6e4143711f329 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Nov 2011 17:41:29 +0000 Subject: make PluginManager API more in line with other singletons; do initial plugin discovery before beginning to construct the UI, so that if plugins create GUIs (e.g for license verification) they don't cause a run loop to catch the UIManager in an inconsistent state with menus defined but actions missing git-svn-id: svn://localhost/ardour2/branches/3.0@10586 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/rc_configuration.cc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'libs/ardour/rc_configuration.cc') diff --git a/libs/ardour/rc_configuration.cc b/libs/ardour/rc_configuration.cc index c4417b376e..8c4650b2e6 100644 --- a/libs/ardour/rc_configuration.cc +++ b/libs/ardour/rc_configuration.cc @@ -78,18 +78,12 @@ RCConfiguration::~RCConfiguration () int RCConfiguration::load_state () { - bool found = false; - sys::path system_rc_file; struct stat statbuf; /* load system configuration first */ - if (find_file_in_search_path (ardour_search_path() + system_config_search_path(), - "ardour_system.rc", system_rc_file) ) - { - found = true; - + if (find_file_in_search_path (ardour_search_path() + system_config_search_path(), "ardour_system.rc", system_rc_file)) { string rcfile = system_rc_file.to_string(); /* stupid XML Parser hates empty files */ @@ -120,11 +114,7 @@ RCConfiguration::load_state () sys::path user_rc_file; - if (find_file_in_search_path (ardour_search_path() + user_config_directory(), - "ardour.rc", user_rc_file)) - { - found = true; - + if (find_file_in_search_path (ardour_search_path() + user_config_directory(), "ardour.rc", user_rc_file)) { string rcfile = user_rc_file.to_string(); /* stupid XML parser hates empty files */ @@ -151,9 +141,6 @@ RCConfiguration::load_state () } } - if (!found) - error << string_compose (_("%1: could not find configuration file (ardour.rc), canvas will look broken."), PROGRAM_NAME) << endmsg; - return 0; } -- cgit v1.2.3