diff --git a/src/provider/core/provider.h b/src/provider/core/provider.h --- a/src/provider/core/provider.h +++ b/src/provider/core/provider.h @@ -201,6 +201,7 @@ /*! Sets the minimum time in days between two surveys. * @c -1 indicates no surveys should be requested. + * @c 0 indicates no minimum time between surveys at all (i.e. bother the user as often as you want). */ void setSurveyInterval(int days); diff --git a/src/provider/core/provider.cpp b/src/provider/core/provider.cpp --- a/src/provider/core/provider.cpp +++ b/src/provider/core/provider.cpp @@ -338,7 +338,7 @@ if (!q->isEnabled() || !survey.isValid() || completedSurveys.contains(survey.uuid().toString())) return false; - if (lastSurveyTime.addDays(surveyInterval) > QDateTime::currentDateTime()) + if (surveyInterval != 0 && lastSurveyTime.addDays(surveyInterval) > QDateTime::currentDateTime()) return false; if (!survey.target().isEmpty()) {