diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
| commit | e1c678ef00f0159bbeb5571e5ebb0d4697121334 (patch) | |
| tree | 6547edef81a62a812a4d0f64e03fda226b5f0a7e /main.cpp | |
| parent | b9daa22c4c3ad51cd4bc0ef624a19f21d01c9305 (diff) | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
Update upstream source from tag 'upstream/3.0.0_rc1+repack'
Update to upstream version '3.0.0~rc1+repack'
with Debian dir 68c212e23136fecf9ebc6f12ff355579224d27ee
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -8,6 +8,7 @@ #include <locale>
#include <fftw3.h>
+#include <QApplication>
#include <QSharedMemory>
#include <QProcessEnvironment>
#include <QTemporaryFile>
@@ -113,6 +114,10 @@ int main(int argc, char *argv[]) // Multiple instances communicate with jt9 via this
QSharedMemory mem_jt9;
+ // Read optional file to disable highDPI scaling
+ QFile f("DisableHighDpiScaling");
+ if (!f.exists()) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
auto const env = QProcessEnvironment::systemEnvironment ();
ExceptionCatchingApplication a(argc, argv);
@@ -429,6 +434,8 @@ int main(int argc, char *argv[]) ).toBool () ? 1u : 4u;
}
+ QDir::setCurrent(qApp->applicationDirPath()); //This helps to find the SF executables
+
// run the application UI
MainWindow w(temp_dir, multiple, &multi_settings, &mem_jt9, downSampleFactor, &splash, env);
w.show();
|
