User survey: always wait a week

I can't remember why I decided to show the survey immediately if someone
was running a development version. Seems silly to me in retrospect.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-01 22:50:03 -08:00
parent 864c4ce94d
commit cef150d7dc

View file

@ -919,7 +919,7 @@ void MainWindow::checkSurvey(QSettings *s)
}
// wait a week for production versions, but not at all for non-tagged builds
QString ver(VERSION_STRING);
int waitTime = ver.contains('-') ? -1 : 7;
int waitTime = 7;
QDate firstUse42 = s->value("FirstUse42").toDate();
if (run_survey || (firstUse42.daysTo(QDate().currentDate()) > waitTime && !s->contains("SurveyDone"))) {
if (!survey)