summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-19 12:39:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-19 14:27:54 -0700
commitad66297cfd843199f39e3a231cb8311652ea183c (patch)
treefedc6cf6422fa120de30c570f3b9a7a1224242de /desktop-widgets/mainwindow.cpp
parent4fd4b75269469ee1029c51bdaf8275149d20a929 (diff)
downloadsubsurface-ad66297cfd843199f39e3a231cb8311652ea183c.tar.gz
desktop: remove user survey
We have never made good use of the results. Let's just remove it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index e7416fe89..d81a2f914 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -51,7 +51,6 @@
#include "desktop-widgets/subsurfacewebservices.h"
#include "desktop-widgets/tab-widgets/maintab.h"
#include "desktop-widgets/updatemanager.h"
-#include "desktop-widgets/usersurvey.h"
#include "desktop-widgets/simplewidgets.h"
#include "commands/command.h"
@@ -125,7 +124,6 @@ MainWindow::MainWindow() : QMainWindow(),
helpView(0),
#endif
state(VIEWALL),
- survey(nullptr),
findMovedImagesDialog(nullptr)
{
Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!");
@@ -1177,13 +1175,6 @@ void MainWindow::on_actionUserManual_triggered()
#endif
}
-void MainWindow::on_actionUserSurvey_triggered()
-{
- if(!survey)
- survey = new UserSurvey(this);
- survey->show();
-}
-
void MainWindow::on_actionHash_images_triggered()
{
if(!findMovedImagesDialog)
@@ -1333,40 +1324,16 @@ void MainWindow::initialUiSetup()
void MainWindow::readSettings()
{
- static bool firstRun = true;
init_proxy();
// now make sure that the cloud menu items are enabled IFF cloud account is verified
enableDisableCloudActions();
loadRecentFiles();
- if (firstRun) {
- checkSurvey();
- firstRun = false;
- }
}
#undef TOOLBOX_PREF_BUTTON
-void MainWindow::checkSurvey()
-{
- QSettings s;
- s.beginGroup("UserSurvey");
- if (!s.contains("FirstUse42")) {
- QVariant value = QDate().currentDate();
- s.setValue("FirstUse42", value);
- }
- // wait a week for production versions, but not at all for non-tagged builds
- int waitTime = 7;
- QDate firstUse42 = s.value("FirstUse42").toDate();
- if (run_survey || (firstUse42.daysTo(QDate().currentDate()) > waitTime && !s.contains("SurveyDone"))) {
- if (!survey)
- survey = new UserSurvey(this);
- survey->show();
- }
- s.endGroup();
-}
-
void MainWindow::writeSettings()
{
QSettings settings;