changeset 2541:7eab1eca5cc4

Place an expiry on feedback request for this version
author Chris Cannam
date Fri, 15 May 2020 14:21:42 +0100
parents 56503c58178f
children 7df56e260845
files main/MainWindow.cpp
diffstat 1 files changed, 20 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Thu May 14 19:03:18 2020 +0100
+++ b/main/MainWindow.cpp	Fri May 15 14:21:42 2020 +0100
@@ -340,21 +340,26 @@
         m_surveyer = nullptr;
 
 #ifdef WITH_FEEDBACK_REQUEST
-        SVDEBUG << "MainWindow: Feedback request enabled, creating surveyer" << endl;
-        Surveyer::Config config;
-        config.hostname = "sonicvisualiser.org";
-        config.testPath = "feedback41-present.txt";
-        config.surveyPath = "feedback41.php";
-        config.countdownKey = "countdown41";
-        config.countdownFrom = 4;
-        config.title = "Sonic Visualiser - Can you help?";
-        config.text = "<h3>Sonic Visualiser: Can you help?</h3><p>"
-            "<p>Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?</p>"
-            "<p>If so, would you be interested in telling us something about your work? We are gathering case studies to gauge our impact and inform our future actions.</p><p>Anything you tell us will be used solely to guide research and development at the Centre for Digital Music, Queen Mary University of London.</p>";
-        config.acceptLabel = tr("Yes, I'd be happy to");
-        config.rejectLabel = tr("No, thank you");
-        config.includeSystemInfo = false;
-        m_surveyer = new Surveyer(config);
+        SVDEBUG << "MainWindow: Feedback request enabled" << endl;
+        if (QDate::currentDate().year() > 2020) {
+            SVDEBUG << "MainWindow: Feedback request expired, not running it" << endl;
+        } else {
+            SVDEBUG << "MainWindow: Creating surveyer" << endl;
+            Surveyer::Config config;
+            config.hostname = "sonicvisualiser.org";
+            config.testPath = "feedback41-present.txt";
+            config.surveyPath = "feedback41.php";
+            config.countdownKey = "countdown41";
+            config.countdownFrom = 4;
+            config.title = "Sonic Visualiser - Can you help?";
+            config.text = "<h3>Sonic Visualiser: Can you help?</h3><p>"
+                "<p>Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?</p>"
+                "<p>If so, would you be interested in telling us something about your work? We are gathering case studies to gauge our impact and inform our future actions.</p><p>Anything you tell us will be used solely to guide research and development at the Centre for Digital Music, Queen Mary University of London.</p>";
+            config.acceptLabel = tr("Yes, I'd be happy to");
+            config.rejectLabel = tr("No, thank you");
+            config.includeSystemInfo = false;
+            m_surveyer = new Surveyer(config);
+        }
 #endif
 
         SVDEBUG << "MainWindow: Creating version tester" << endl;