diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-09 17:17:04 -0500 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-09 17:17:04 -0500 |
| commit | 92773706b946533b07de9ade7be28e307954ae38 (patch) | |
| tree | f6adbdc250e2cbafd8d391b0aa19308976af5014 /src/main.cpp | |
| parent | fef8543a58b4226242ce26c4c8876abaa64394cb (diff) | |
don't attempt to parse the command line for launch, it fails in all sorts of ways
don't try to time stuff before logging is initialized, an exception before initLogging() will crash because ~TimeThis() tries to log
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 554ed006..877236e1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,8 +17,6 @@ int forwardToPrimary(MOMultiProcess& multiProcess, const cl::CommandLine& cl); int main(int argc, char *argv[]) { - TimeThis tt("main()"); - MOShared::SetThisThreadName("main"); setExceptionHandlers(); @@ -29,6 +27,9 @@ int main(int argc, char *argv[]) initLogging(); + // must be after logging + TimeThis tt("main()"); + QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); MOApplication app(cl, argc, argv); |
