changeset 1521:f016667b4adb 3.0-integration

Show warning about beta release
author Chris Cannam
date Tue, 10 Jan 2017 16:04:03 +0000
parents a2801c212fbf
children f73a4e8c7040
files main/MainWindow.cpp main/MainWindow.h
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Tue Jan 10 15:56:01 2017 +0000
+++ b/main/MainWindow.cpp	Tue Jan 10 16:04:03 2017 +0000
@@ -335,6 +335,8 @@
         m_versionTester = 0;
     }
 
+    QTimer::singleShot(500, this, SLOT(betaReleaseWarning()));
+    
     QString warning = PluginScan::getInstance()->getStartupFailureReport();
     if (warning != "") {
         QTimer::singleShot(500, this, SLOT(pluginPopulationWarning()));
@@ -4276,6 +4278,14 @@
 }
 
 void
+MainWindow::betaReleaseWarning()
+{
+    QMessageBox::information
+        (this, tr("Beta release"),
+         tr("<b>This is a beta release of Sonic Visualiser</b><p>Please see the \"What's New\" option in the Help menu for a list of changes since the last proper release.</p>"));
+}
+
+void
 MainWindow::pluginPopulationWarning()
 {
     QString scanWarning = PluginScan::getInstance()->getStartupFailureReport();
--- a/main/MainWindow.h	Tue Jan 10 15:56:01 2017 +0000
+++ b/main/MainWindow.h	Tue Jan 10 16:04:03 2017 +0000
@@ -155,6 +155,7 @@
     virtual void midiEventsAvailable();
     virtual void playStatusChanged(bool);
 
+    virtual void betaReleaseWarning();
     virtual void pluginPopulationWarning();
 
     virtual void saveSessionAsTemplate();