diff main/MainWindow.cpp @ 764:91d821455fa5 2.4beta1

Beta release dialog
author Chris Cannam
date Wed, 13 Aug 2014 21:37:25 +0100
parents 902756b8d8b1
children e927e43e428e
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Aug 13 16:45:14 2014 +0100
+++ b/main/MainWindow.cpp	Wed Aug 13 21:37:25 2014 +0100
@@ -162,7 +162,9 @@
     m_layerTreeDialog(0),
     m_activityLog(new ActivityLog()),
     m_keyReference(new KeyReference()),
-    m_templateWatcher(0)
+    m_templateWatcher(0),
+    m_surveyer(0),
+    m_versionTester(0)
 {
     Profiler profiler("MainWindow::MainWindow");
 
@@ -301,6 +303,16 @@
     connect(m_midiInput, SIGNAL(eventsAvailable()),
             this, SLOT(midiEventsAvailable()));
 
+#ifdef BETA_RELEASE
+    QMessageBox::information
+        (this, tr("Test release"),
+         tr("<p>This is a test release of %1.</p>"
+            "<p>See the <a href=\"http://code.soundsoftware.ac.uk/projects/sonic-visualiser/repository/entry/CHANGELOG\">changelog</a> for details of what has changed since the last release.</p>"
+            "<p>Please let us know if you have any problems with this test release, and especially if it crashes. Use the <a href=\"http://sourceforge.net/p/sv1/bugs/\">bug tracker</a> or <a href=\"mailto:cannam+sv@all-day-breakfast.com\">email</a> to report bugs.</p><p>Please do not use this software for real work, and do not distribute it to other people who have real work to do! Use it only if you are prepared to report any bugs you find.</p>")
+         .arg(QApplication::applicationName()));
+
+    (void)withOSCSupport; // avoid warning
+#else
     NetworkPermissionTester tester;
     bool networkPermission = tester.havePermission();
     if (networkPermission) {
@@ -314,10 +326,8 @@
             ("sonicvisualiser.org", "latest-version.txt", SV_VERSION);
         connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)),
                 this, SLOT(newerVersionAvailable(QString)));
-    } else {
-        m_surveyer = 0;
-        m_versionTester = 0;
     }
+#endif
 }
 
 MainWindow::~MainWindow()