mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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()
|
||||
{
|
||||
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);
|
||||
if (firstRun) {
|
||||
checkSurvey(&s);
|
||||
firstRun = false;
|
||||
}
|
||||
}
|
||||
|
||||
#undef TOOLBOX_PREF_BUTTON
|
||||
|
|
Loading…
Add table
Reference in a new issue