mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
8315f44d2c
commit
5149bc0df8
1 changed files with 5 additions and 2 deletions
|
@ -809,6 +809,7 @@ const char *getSetting(QSettings &s, QString name)
|
||||||
|
|
||||||
void MainWindow::readSettings()
|
void MainWindow::readSettings()
|
||||||
{
|
{
|
||||||
|
static bool firstRun = true;
|
||||||
QSettings s;
|
QSettings s;
|
||||||
s.beginGroup("Display");
|
s.beginGroup("Display");
|
||||||
QFont defaultFont = QFont(default_prefs.divelist_font);
|
QFont defaultFont = QFont(default_prefs.divelist_font);
|
||||||
|
@ -848,9 +849,11 @@ void MainWindow::readSettings()
|
||||||
}
|
}
|
||||||
QNetworkProxy::setApplicationProxy(proxy);
|
QNetworkProxy::setApplicationProxy(proxy);
|
||||||
|
|
||||||
|
|
||||||
loadRecentFiles(&s);
|
loadRecentFiles(&s);
|
||||||
|
if (firstRun) {
|
||||||
checkSurvey(&s);
|
checkSurvey(&s);
|
||||||
|
firstRun = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef TOOLBOX_PREF_BUTTON
|
#undef TOOLBOX_PREF_BUTTON
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue