FEATURE: Software update check can now be disabled (Mac OS X / Windows)

This commit is contained in:
Christophe Dumez
2010-12-21 17:41:11 +00:00
parent 4065972179
commit 6bcbfa2e05
4 changed files with 46 additions and 14 deletions

View File

@@ -978,6 +978,15 @@ public:
setValue(QString::fromUtf8("Preferences/Advanced/trackerPort"), port);
}
#if defined(Q_WS_WIN) || define(Q_WS_MAC)
bool isUpdateCheckEnabled() const {
return value(QString::fromUtf8("Preferences/Advanced/updateCheck"), true).toBool();
}
void setUpdateCheckEnabled(bool enabled) {
setValue(QString::fromUtf8("Preferences/Advanced/updateCheck"), enabled);
}
#endif
};
#endif // PREFERENCES_H