aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorEdgars Cīrulis <edgarsscirulis@gmail.com>2023-01-19 10:39:57 +0200
committerEdgars Cīrulis <edgarsscirulis@gmail.com>2023-01-19 10:40:30 +0200
commitf49ad2ee03974c9fe94882d99d1a2bee67b87285 (patch)
treeabd806ff36ea5c5be675a7349ed0a10a15ceb4f0 /launcher
parent7ed993b54e20d74c000a29720bc9317ad4849ed0 (diff)
downloadPrismLauncher-f49ad2ee03974c9fe94882d99d1a2bee67b87285.tar.gz
PrismLauncher-f49ad2ee03974c9fe94882d99d1a2bee67b87285.tar.bz2
PrismLauncher-f49ad2ee03974c9fe94882d99d1a2bee67b87285.zip
Version.h: Fix comparison of null version in Version class
Co-authored-by: Rachel Powers <508861+Ryex@users.noreply.github.com> Signed-off-by: Edgars Cīrulis <edgarsscirulis@gmail.com>
Diffstat (limited to 'launcher')
-rw-r--r--launcher/Version.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/Version.h b/launcher/Version.h
index 1f1bea83..9db03521 100644
--- a/launcher/Version.h
+++ b/launcher/Version.h
@@ -115,7 +115,8 @@ private:
} else if (numValid && other.m_isNull) {
return m_numPart != 0;
} else if (m_isNull || other.m_isNull) {
- return false;
+ if ((m_stringPart == ".") || (other.m_stringPart == ".")) return false;
+ return true;
}
if(numValid && other.numValid)
{