diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-24 23:06:53 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-24 23:06:53 -0500 |
| commit | 89bbdf22cde8d16d2d5e72999abf97b38ecd7b11 (patch) | |
| tree | 3f4c4de743acdbb90e7e9997147f478c0c1f698e /src/shared/util.cpp | |
| parent | 06ca11edfb2957d07f9e7bccce1e8a765b1d0209 (diff) | |
| parent | 9441d49c6d7dff23395460076112b57d4c0e8743 (diff) | |
Merge pull request #1328 from isanae/stuff
Stuff
Diffstat (limited to 'src/shared/util.cpp')
| -rw-r--r-- | src/shared/util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/util.cpp b/src/shared/util.cpp index f316549e..54c6b841 100644 --- a/src/shared/util.cpp +++ b/src/shared/util.cpp @@ -210,12 +210,13 @@ std::wstring GetFileVersionString(const std::wstring &fileName) VersionInfo createVersionInfo()
{
- VS_FIXEDFILEINFO version = GetFileVersion(QApplication::applicationFilePath().toStdWString());
+ VS_FIXEDFILEINFO version = GetFileVersion(env::thisProcessPath().native());
if (version.dwFileFlags & VS_FF_PRERELEASE)
{
// Pre-release builds need annotating
- QString versionString = QString::fromStdWString(GetFileVersionString(QApplication::applicationFilePath().toStdWString()));
+ QString versionString = QString::fromStdWString(
+ GetFileVersionString(env::thisProcessPath().native()));
// The pre-release flag can be set without the string specifying what type of pre-release
bool noLetters = true;
|
