User survey: don't ask more than once per invocation

Otherwise when the user selects "Ask Again" they will get asked when they
change preferences.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-06-30 14:42:48 -07:00
parent 8315f44d2c
commit 5149bc0df8

View file

@ -809,6 +809,7 @@ const char *getSetting(QSettings &s, QString name)
void MainWindow::readSettings()
{
static bool firstRun = true;
QSettings s;
s.beginGroup("Display");
QFont defaultFont = QFont(default_prefs.divelist_font);
@ -848,9 +849,11 @@ void MainWindow::readSettings()
}
QNetworkProxy::setApplicationProxy(proxy);
loadRecentFiles(&s);
checkSurvey(&s);
if (firstRun) {
checkSurvey(&s);
firstRun = false;
}
}
#undef TOOLBOX_PREF_BUTTON