comparison 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
comparison
equal deleted inserted replaced
1147:29c6a7cb114e 1148:b3b5885e7c2c
330 m_surveyer = 0; 330 m_surveyer = 0;
331 m_versionTester = 0; 331 m_versionTester = 0;
332 } 332 }
333 333
334 QString warning = PluginScan::getInstance()->getStartupFailureReport(); 334 QString warning = PluginScan::getInstance()->getStartupFailureReport();
335 if (warning != "") pluginPopulationWarning(warning); 335 if (warning != "") {
336 QTimer::singleShot(500, this, SLOT(pluginPopulationWarning()));
337 }
336 } 338 }
337 339
338 MainWindow::~MainWindow() 340 MainWindow::~MainWindow()
339 { 341 {
340 // SVDEBUG << "MainWindow::~MainWindow" << endl; 342 // SVDEBUG << "MainWindow::~MainWindow" << endl;
4140 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload.")); 4142 tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload."));
4141 shownOnce = true; 4143 shownOnce = true;
4142 } 4144 }
4143 4145
4144 void 4146 void
4145 MainWindow::pluginPopulationWarning(QString warning) 4147 MainWindow::pluginPopulationWarning()
4146 { 4148 {
4149 QString warning = PluginScan::getInstance()->getStartupFailureReport();
4147 QMessageBox::warning(this, tr("Problems loading plugins"), warning); 4150 QMessageBox::warning(this, tr("Problems loading plugins"), warning);
4148 } 4151 }
4149 4152
4150 void 4153 void
4151 MainWindow::midiEventsAvailable() 4154 MainWindow::midiEventsAvailable()