Skip to content

Commit

Permalink
fix version comparison, and display new version, not user version
Browse files Browse the repository at this point in the history
  • Loading branch information
ksshannon committed Jul 14, 2018
1 parent 422ade1 commit 83b6216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/cmake_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ int main(int argc, char *argv[])
if (papszMsg != NULL) {
const char *pszVers =
CSLFetchNameValueDef(papszMsg, "VERSION", NINJA_VERSION_STRING);
if (strcmp(pszVers, NINJA_VERSION_STRING) != 0) {
if (strcmp(pszVers, NINJA_VERSION_STRING) > 0) {
mbox.setText("A new version of WindNinja is available: " +
QString(NINJA_VERSION_STRING));
QString(pszVers));
mbox.exec();
}
char **papszUserMsg = CSLFetchNameValueMultiple(papszMsg, "MESSAGE");
Expand Down

0 comments on commit 83b6216

Please sign in to comment.