# HG changeset patch # User Chris Cannam # Date 1589548902 -3600 # Node ID 7eab1eca5cc4c90adc2793cf51ce718a368e4c8b # Parent 56503c58178facc9666595b13f0a10afa4573b20 Place an expiry on feedback request for this version diff -r 56503c58178f -r 7eab1eca5cc4 main/MainWindow.cpp --- 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 = "
" - "
Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?
" - "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.
Anything you tell us will be used solely to guide research and development at the Centre for Digital Music, Queen Mary University of London.
"; - 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 = "" + "
Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?
" + "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.
Anything you tell us will be used solely to guide research and development at the Centre for Digital Music, Queen Mary University of London.
"; + 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;