Changeset 760f2aae97 in tspsg for src
- Timestamp:
- Oct 14, 2010, 8:04:45 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 7fd1756f1e
- Parents:
- 9adbc413c7
- git-author:
- Oleksii Serdiuk <contacts@…> (10/14/10 20:04:45)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r9adbc413c7 r760f2aae97 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.