Fix crash when X11 is not available for VST UIs
[ardour.git] / gtk2_ardour / plugin_scan_dialog.cc
index 942eba115a3c9eb40dd55a7744dd70f5f1b8a317..a3ba2c16c886d7cecd43812b06a53cb7c708dd00 100644 (file)
@@ -86,9 +86,9 @@ PluginScanDialog::start ()
         * Plugin discovery must take place in the main thread of the
         * process. This is not true for all plugin APIs but it is true for
         * VST.  For AU, although plugins themselves do not care, Apple decided
-        * that Cocoa must be "invoked" from the main thread, so if the plugin
-        * decides to show any kind of "registration" GUI, then again,
-        * discovery must be done in the main thread.
+        * that Cocoa must be "invoked" from the main thread. Since the plugin
+        * might show a "registration" GUI, discovery must be done
+        * in the main thread.
         *
         * This means that the PluginManager::refresh() call MUST be made from
         * the main thread (typically the GUI thread, but certainly the thread
@@ -201,10 +201,8 @@ PluginScanDialog::message_handler (std::string type, std::string plugin, bool ca
                hide();
                connections.drop_connections ();
        } else {
-               if (verbose) {
-                       message.set_text (type + ": " + Glib::path_get_basename(plugin));
-                       show();
-               }
+               message.set_text (type + ": " + Glib::path_get_basename(plugin));
+               show();
        }
 
        if (!can_cancel || !cancelled) {