update plugin scan dialog gtk hack
authorRobin Gareus <robin@gareus.org>
Tue, 25 Feb 2014 08:40:40 +0000 (09:40 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 25 Feb 2014 13:57:57 +0000 (14:57 +0100)
gtk2_ardour/ardour_ui.cc

index 10de8e795d8953068b9cbfbc8e1863365e99544f..a55dfc48cda708ba2236d4304a353e699cb06b6c 100644 (file)
@@ -3826,7 +3826,11 @@ ARDOUR_UI::plugin_scan_dialog (std::string type, std::string plugin)
                scan_dlg->show_all();
        }
 
-       gtk_main_iteration ();
+       /* due to idle calls, gtk_events_pending() may always return true */
+       int timeout = 30;
+       while (gtk_events_pending() && --timeout) {
+               gtk_main_iteration ();
+       }
 }
 
 void