aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-07 20:37:50 -0400
committerKen Moore <ken@ixsystems.com>2017-06-07 20:37:50 -0400
commitf4ed12f28bd437fbe4907b6f473687fc3d418307 (patch)
tree9c63b6dcb256dda222598ba35cef9722267ed10e /src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
parentAdd a new backend function to LUtils for opening a QSettings file. (diff)
downloadlumina-f4ed12f28bd437fbe4907b6f473687fc3d418307.tar.gz
lumina-f4ed12f28bd437fbe4907b6f473687fc3d418307.tar.bz2
lumina-f4ed12f28bd437fbe4907b6f473687fc3d418307.zip
Make all the desktop utilities use the new LUtils::openSettings() function so they can be launched as the root user without clobbering the user-permissioned settings file.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
index be0fc02b..bdfbbfec 100644
--- a/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-screenshot/MainUI.cpp
@@ -59,7 +59,7 @@ MainUI::MainUI()
connect(scaleTimer, SIGNAL(timeout()), this, SLOT(imgScalingChanged()) );
connect(tabbar, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)) );
connect(ui->check_show_popups, SIGNAL(toggled(bool)), this, SLOT(showPopupsChanged(bool)) );
- settings = new QSettings("lumina-desktop", "lumina-screenshot",this);
+ settings = LUtils::openSettings("lumina-desktop", "lumina-screenshot",this);
QString opt = settings->value("screenshot-target", "window").toString();
if( opt == "window") {ui->radio_window->setChecked(true); }
else if(opt=="area"){ ui->radio_area->setChecked(true); }
bgstack15