aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-mediaplayer/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-mediaplayer/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-mediaplayer/mainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp
index ad5fc833..cf7a41cb 100644
--- a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp
@@ -20,7 +20,7 @@
MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){
ui->setupUi(this);
- SETTINGS = new QSettings("lumina-desktop","lumina-mediaplayer");
+ SETTINGS = LUtils::openSettings("lumina-desktop","lumina-mediaplayer",this);
closing = false;
DISABLE_VIDEO = true; //add a toggle in the UI for this later
//Any special UI changes
bgstack15