comparison main/MainWindow.cpp @ 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
comparison
equal deleted inserted replaced
2540:56503c58178f 2541:7eab1eca5cc4
338 TransformFactory::getInstance()->startPopulationThread(); 338 TransformFactory::getInstance()->startPopulationThread();
339 339
340 m_surveyer = nullptr; 340 m_surveyer = nullptr;
341 341
342 #ifdef WITH_FEEDBACK_REQUEST 342 #ifdef WITH_FEEDBACK_REQUEST
343 SVDEBUG << "MainWindow: Feedback request enabled, creating surveyer" << endl; 343 SVDEBUG << "MainWindow: Feedback request enabled" << endl;
344 Surveyer::Config config; 344 if (QDate::currentDate().year() > 2020) {
345 config.hostname = "sonicvisualiser.org"; 345 SVDEBUG << "MainWindow: Feedback request expired, not running it" << endl;
346 config.testPath = "feedback41-present.txt"; 346 } else {
347 config.surveyPath = "feedback41.php"; 347 SVDEBUG << "MainWindow: Creating surveyer" << endl;
348 config.countdownKey = "countdown41"; 348 Surveyer::Config config;
349 config.countdownFrom = 4; 349 config.hostname = "sonicvisualiser.org";
350 config.title = "Sonic Visualiser - Can you help?"; 350 config.testPath = "feedback41-present.txt";
351 config.text = "<h3>Sonic Visualiser: Can you help?</h3><p>" 351 config.surveyPath = "feedback41.php";
352 "<p>Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?</p>" 352 config.countdownKey = "countdown41";
353 "<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>"; 353 config.countdownFrom = 4;
354 config.acceptLabel = tr("Yes, I'd be happy to"); 354 config.title = "Sonic Visualiser - Can you help?";
355 config.rejectLabel = tr("No, thank you"); 355 config.text = "<h3>Sonic Visualiser: Can you help?</h3><p>"
356 config.includeSystemInfo = false; 356 "<p>Are you using Sonic Visualiser in academic research or for commercial purposes? Or do you intend to do so?</p>"
357 m_surveyer = new Surveyer(config); 357 "<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>";
358 config.acceptLabel = tr("Yes, I'd be happy to");
359 config.rejectLabel = tr("No, thank you");
360 config.includeSystemInfo = false;
361 m_surveyer = new Surveyer(config);
362 }
358 #endif 363 #endif
359 364
360 SVDEBUG << "MainWindow: Creating version tester" << endl; 365 SVDEBUG << "MainWindow: Creating version tester" << endl;
361 m_versionTester = new VersionTester 366 m_versionTester = new VersionTester
362 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION); 367 ("sonicvisualiser.org", "latest-version.txt", SV_VERSION);