Skip to content

Commit

Permalink
Fixed|Updater: Notification message in Candidate builds
Browse files Browse the repository at this point in the history
When running a Candidate build, the updater notification message
would be blank if the installed build is up to date.
  • Loading branch information
skyjake committed Aug 29, 2012
1 parent 2dc7f6a commit 6913254
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions doomsday/engine/portable/src/updater/updateavailabledialog.cpp
Expand Up @@ -137,11 +137,12 @@ struct UpdateAvailableDialog::Instance
info->setTextFormat(Qt::RichText);

VersionInfo currentVersion;
int bigFontSize = self->font().pointSize() * 1.2;
de::String channel = (UpdaterSettings().channel() == UpdaterSettings::Stable?
"stable" : "unstable");
bool askUpgrade = false;
bool askDowngrade = false;

int bigFontSize = self->font().pointSize() * 1.2;
de::String channel = (UpdaterSettings().channel() == UpdaterSettings::Stable? "stable" : "unstable");
de::String builtInType = (de::String(DOOMSDAY_RELEASE_TYPE) == "Stable"? "stable" : "unstable");
bool askUpgrade = false;
bool askDowngrade = false;

if(latestVersion > currentVersion)
{
Expand All @@ -154,7 +155,7 @@ struct UpdateAvailableDialog::Instance
.arg(latestVersion.asText())
.arg(currentVersion.asText()));
}
else if(!channel.compareWithoutCase(DOOMSDAY_RELEASE_TYPE)) // same release type
else if(channel == builtInType) // same release type
{
info->setText(("<span style=\"font-weight:bold; font-size:%1pt;\">" +
tr("You are up to date.") + "</span><p>" +
Expand Down

0 comments on commit 6913254

Please sign in to comment.