comparison src/mainwindow.cpp @ 640:91b7ad45c608

Merge
author Chris Cannam
date Fri, 19 Oct 2012 11:47:28 +0100
parents 436a97afe732 7f1adcdc6cdc
children b16e8ef6919b
comparison
equal deleted inserted replaced
639:31f5168fb5d9 640:91b7ad45c608
3193 QSettings settings; 3193 QSettings settings;
3194 settings.beginGroup("NewerVersionWarning"); 3194 settings.beginGroup("NewerVersionWarning");
3195 QString tag = QString("version-%1-available-show").arg(version); 3195 QString tag = QString("version-%1-available-show").arg(version);
3196 if (settings.value(tag, true).toBool()) { 3196 if (settings.value(tag, true).toBool()) {
3197 QString title(tr("Newer version available")); 3197 QString title(tr("Newer version available"));
3198 QString text(tr("<h3>Newer version available</h3><p>You are using version %1 of EasyMercurial, but version %3 is now available.</p><p>Please see the <a href=\"http://easymercurial.org/\">EasyMercurial website</a> for more information.</p>").arg(EASYHG_VERSION).arg(version)); 3198 QString text(tr("<h3>Newer version available</h3><p>You are using version %1 of EasyMercurial, but version %3 is now available.</p><p>Please see the <a href=\"http://easyhg.org/\">EasyMercurial website</a> for more information.</p>").arg(EASYHG_VERSION).arg(version));
3199 QMessageBox::information(this, title, text); 3199 QMessageBox::information(this, title, text);
3200 settings.setValue(tag, false); 3200 settings.setValue(tag, false);
3201 } 3201 }
3202 settings.endGroup(); 3202 settings.endGroup();
3203 } 3203 }