From 4fb39226ef07dd34878e132d39b37e63a1916ff6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 5 Dec 2018 22:01:22 -0800 Subject: [PATCH] Fix 'moonlight -v' output on Linux --- app/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 2e3fa271..a97eb145 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -223,6 +223,9 @@ LONG WINAPI UnhandledExceptionHandler(struct _EXCEPTION_POINTERS *ExceptionInfo) int main(int argc, char *argv[]) { + // Set the app version for the QCommandLineParser's showVersion() command + QCoreApplication::setApplicationVersion(VERSION_STR); + // Set these here to allow us to use the default QSettings constructor. // These also ensure that our cache directory is named correctly. As such, // it is critical that these be called before Path::initialize().