diff main/MainWindow.cpp @ 1088:36de09aaa614 3.0-integration

Merge from branch plugin-startup-test
author Chris Cannam
date Tue, 19 Jan 2016 12:34:38 +0000
parents 6fcb632384ba
children 52cbb3f6b9fa
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Dec 02 10:10:06 2015 +0000
+++ b/main/MainWindow.cpp	Tue Jan 19 12:34:38 2016 +0000
@@ -300,6 +300,7 @@
     connect(this, SIGNAL(activity(QString)),
             m_activityLog, SLOT(activityHappened(QString)));
     connect(this, SIGNAL(replacedDocument()), this, SLOT(documentReplaced()));
+
     m_activityLog->hide();
 
     m_unitConverter->hide();
@@ -328,6 +329,9 @@
         m_surveyer = 0;
         m_versionTester = 0;
     }
+
+    QString warning = TransformFactory::getInstance()->getPluginPopulationWarning();
+    if (warning != "") pluginPopulationWarning(warning);
 }
 
 MainWindow::~MainWindow()
@@ -4137,6 +4141,12 @@
 }
 
 void
+MainWindow::pluginPopulationWarning(QString warning)
+{
+    QMessageBox::warning(this, tr("Problems loading plugins"), warning);
+}
+
+void
 MainWindow::midiEventsAvailable()
 {
     Pane *currentPane = 0;