Qt: plugins dialog as a toggle one.
[vlc.git] / modules / gui / qt4 / dialogs_provider.cpp
index dad8834..9a954e9 100644 (file)
@@ -259,8 +259,7 @@ void DialogsProvider::toolbarDialog()
 
 void DialogsProvider::pluginDialog()
 {
-    PluginDialog *diag = new PluginDialog( p_intf );
-    diag->show();
+    PluginDialog::getInstance( p_intf )->toggleVisible();
 }
 
 /* Generic open file */