diff main/MainWindow.cpp @ 1148:b3b5885e7c2c pluginscan

Check for plugin scan helper checker helper program in suitable directory, & tidy up warning messages somewhat
author Chris Cannam
date Fri, 15 Apr 2016 16:13:06 +0100
parents 52cbb3f6b9fa
children 5e6e1e074080 e0aa911e1a8a
line wrap: on
line diff
--- a/main/MainWindow.cpp	Thu Apr 14 16:53:03 2016 +0100
+++ b/main/MainWindow.cpp	Fri Apr 15 16:13:06 2016 +0100
@@ -332,7 +332,9 @@
     }
 
     QString warning = PluginScan::getInstance()->getStartupFailureReport();
-    if (warning != "") pluginPopulationWarning(warning);
+    if (warning != "") {
+        QTimer::singleShot(500, this, SLOT(pluginPopulationWarning()));
+    }
 }
 
 MainWindow::~MainWindow()
@@ -4142,8 +4144,9 @@
 }
 
 void
-MainWindow::pluginPopulationWarning(QString warning)
+MainWindow::pluginPopulationWarning()
 {
+    QString warning = PluginScan::getInstance()->getStartupFailureReport();
     QMessageBox::warning(this, tr("Problems loading plugins"), warning);
 }