Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 1087:6fcb632384ba plugin-startup-test
Show warning to the user when plugin population has problems
author | Chris Cannam |
---|---|
date | Tue, 19 Jan 2016 12:32:30 +0000 |
parents | 1f92fc7a6b05 |
children | 52cbb3f6b9fa |
line wrap: on
line diff
--- a/main/MainWindow.cpp Mon Jan 11 14:18:56 2016 +0000 +++ b/main/MainWindow.cpp Tue Jan 19 12:32:30 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;