- Timestamp:
- Oct 14, 2010, 8:04:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r143 r144 125 125 setWindowModified(false); 126 126 127 if ((actionHelpCheck4Updates != NULL) 128 && (settings->value("Check4Updates/Enabled", DEF_CHECK_FOR_UPDATES).toBool()) 129 && (QDate(qvariant_cast<QDate>(settings->value("Check4Updates/LastAttempt"))).daysTo(QDate::currentDate()) >= settings->value("Check4Updates/Interval", DEF_UPDATE_CHECK_INTERVAL).toInt())) { 130 check4Updates(true); 127 if (actionHelpCheck4Updates != NULL) { 128 if (!settings->contains("Check4Updates/Enabled")) { 129 QApplication::setOverrideCursor(QCursor(Qt::ArrowCursor)); 130 settings->setValue("Check4Updates/Enabled", 131 QMessageBox::question(this, QCoreApplication::applicationName(), 132 tr("Would you like %1 to automatically check for updates every %n day(s)?", "", settings->value("Check4Updates/Interval", DEF_UPDATE_CHECK_INTERVAL).toInt()).arg(QCoreApplication::applicationName()), 133 QMessageBox::Yes | QMessageBox::No 134 ) == QMessageBox::Yes 135 ); 136 QApplication::restoreOverrideCursor(); 137 } 138 if ((settings->value("Check4Updates/Enabled", DEF_CHECK_FOR_UPDATES).toBool()) 139 && (QDate(qvariant_cast<QDate>(settings->value("Check4Updates/LastAttempt"))).daysTo(QDate::currentDate()) >= settings->value("Check4Updates/Interval", DEF_UPDATE_CHECK_INTERVAL).toInt())) { 140 check4Updates(true); 141 } 131 142 } 132 143 }
Note: See TracChangeset
for help on using the changeset viewer.