Preserve region list selection state even if a region is selected which is not shown...
[ardour.git] / libs / pbd / base_ui.cc
index 9b461fb01d2a5e3ba8b9ba4feedf8d6eec5b8564..ce7018a005293014c95b937468ef853c118deeed 100644 (file)
@@ -25,6 +25,7 @@
 #include <cstring>
 
 #include "pbd/base_ui.h"
+#include "pbd/pthread_utils.h"
 #include "pbd/error.h"
 #include "pbd/compose.h"
 #include "pbd/failed_constructor.h"
@@ -43,8 +44,6 @@ BaseUI::BaseUI (const string& str)
        : run_loop_thread (0)
        , _name (str)
 {
-       cerr << "New BUI called " << _name << " @ " << this << endl;
-
        base_ui_instance = this;
 
        request_channel.ios()->connect (sigc::mem_fun (*this, &BaseUI::request_handler));
@@ -72,6 +71,7 @@ BaseUI::new_request_type ()
 void
 BaseUI::main_thread ()
 {
+       set_event_loop_for_thread (this);
        thread_init ();
        _main_loop->run ();
 }