extend Mixbus' "Safe Mode"
authorRobin Gareus <robin@gareus.org>
Sun, 30 Oct 2016 21:25:18 +0000 (22:25 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 30 Oct 2016 21:25:18 +0000 (22:25 +0100)
libs/ardour/session_state.cc

index c30c773e1d381cac3a0a81c41b25e4d747586330..fbfefaec7e2ecfcb154ce571f5867c901bb5d1fd 100644 (file)
@@ -3637,6 +3637,11 @@ Session::add_instant_xml (XMLNode& node, bool write_to_config)
 XMLNode*
 Session::instant_xml (const string& node_name)
 {
+#ifdef MIXBUS // "Safe Mode" (shift + click open) -> also ignore instant.xml
+       if (get_disable_all_loaded_plugins ()) {
+               return NULL;
+       }
+#endif
        return Stateful::instant_xml (node_name, _path);
 }