diff options
author | Weblate <noreply@weblate.org> | 2017-08-02 21:00:16 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2017-08-02 21:00:16 +0000 |
commit | 3d511a0f8285088eba24cb22b15cda039d27f6a0 (patch) | |
tree | 2eccf8b44a5e9862e6733880c37d57a9af74b41a /src-qt5/desktop-utils/lumina-screenshot/main.cpp | |
parent | Translated using Weblate (Spanish) (diff) | |
parent | Fix up the screensaver animation crashes *again*. (diff) | |
download | lumina-3d511a0f8285088eba24cb22b15cda039d27f6a0.tar.gz lumina-3d511a0f8285088eba24cb22b15cda039d27f6a0.tar.bz2 lumina-3d511a0f8285088eba24cb22b15cda039d27f6a0.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-screenshot/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/main.cpp b/src-qt5/desktop-utils/lumina-screenshot/main.cpp index c1d178a2..e49599bf 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/main.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/main.cpp @@ -11,10 +11,11 @@ int main(int argc, char ** argv) { + LTHEME::LoadCustomEnvSettings(); //Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements) unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); - LTHEME::LoadCustomEnvSettings(); LSingleApplication a(argc, argv, "l-screenshot"); + if(!a.isPrimaryProcess()){ return 0; } //LuminaThemeEngine theme(&a); a.setApplicationName("Take Screenshot"); |