diff options
| author | AnyOldName3 <krizdjali+github@gmail.com> | 2018-05-16 00:42:31 +0100 |
|---|---|---|
| committer | AnyOldName3 <krizdjali+github@gmail.com> | 2018-05-16 00:42:31 +0100 |
| commit | 15db1b76f72a7dd88dbb84df42951c57dfe9917e (patch) | |
| tree | 15ca68323f7679e5f508df94dd46b4329c21b47f /src/main.cpp | |
| parent | 75e6c72ae4132ae4d71f5f04f666f5e33c17d1d3 (diff) | |
Move improved version parsing to util.h and use it everywhere.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c30a1c6..bfc3b926 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -446,11 +446,7 @@ static void preloadSsl() static QString getVersionDisplayString()
{
- VS_FIXEDFILEINFO version = GetFileVersion(ToWString(QApplication::applicationFilePath()));
- return VersionInfo(version.dwFileVersionMS >> 16,
- version.dwFileVersionMS & 0xFFFF,
- version.dwFileVersionLS >> 16,
- version.dwFileVersionLS & 0xFFFF).displayString();
+ return createVersionInfo().displayString();
}
int runApplication(MOApplication &application, SingleInstance &instance,
|
