Latest release notes check should use hex version number instead of string version number

This commit is contained in:
Veronica K. B. Olsen
2021-01-17 20:52:34 +01:00
parent e7e2176e64
commit 2030793a02
5 changed files with 71 additions and 36 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ from nw.core.status import NWStatus
from nw.core.options import OptionState
from nw.common import (
checkString, checkBool, checkInt, isHandle, formatTimeStamp,
makeFileNameSafe
makeFileNameSafe, hexToInt
)
from nw.constants import (
nwFiles, nwItemType, nwItemClass, nwItemLayout, nwLabels, nwAlert
@@ -496,7 +496,7 @@ class NWProject():
# Check novelWriter Version
# =========================
if int(hexVersion, 16) > int(nw.__hexversion__, 16):
if hexToInt(hexVersion) > hexToInt(nw.__hexversion__):
msgYes = self.theParent.askQuestion("Version Conflict", (
"This project was saved by a newer version of novelWriter, version %s. "
"This is version %s. If you continue to open the project, some attributes "