Trully reports new versions.

This commit is contained in:
Martin Rotter 2014-10-24 20:12:52 +02:00
parent 825cb542b8
commit f4f278119a
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ void FormUpdate::checkForUpdates() {
bool is_self_update_for_this_system = isUpdateForThisSystem() && isSelfUpdateSupported();
if (update.first.m_availableVersion != APP_VERSION) {
if (update.first.m_availableVersion > APP_VERSION) {
m_ui->m_lblStatus->setStatus(WidgetWithStatus::Ok,
tr("New release available."),
tr("This is new version which can be\ndownloaded and installed."));

View File

@ -235,7 +235,7 @@ void SystemFactory::handleBackgroundUpdatesCheck() {
QFutureWatcher<UpdateCheck> *future_watcher = static_cast<QFutureWatcher<UpdateCheck>*>(sender());
UpdateCheck updates = future_watcher->result();
if (updates.second == QNetworkReply::NoError && updates.first.m_availableVersion != APP_VERSION) {
if (updates.second == QNetworkReply::NoError && updates.first.m_availableVersion > APP_VERSION) {
if (SystemTrayIcon::isSystemTrayActivated()) {
qApp->trayIcon()->showMessage(tr("New version available"),
tr("Click the bubble for more information."),