aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-10-25 18:27:11 -0400
committerKen Moore <ken@ixsystems.com>2017-10-25 18:27:11 -0400
commit6defe842e03d25827d3638fda8629236593ebc04 (patch)
treecffb496a6b1ec18c936ddb1a1ffeddc87c039248 /src-qt5/desktop-utils/lumina-fm/widgets
parentSpeed up some of the desktop init procedures again. (diff)
downloadlumina-6defe842e03d25827d3638fda8629236593ebc04.tar.gz
lumina-6defe842e03d25827d3638fda8629236593ebc04.tar.bz2
lumina-6defe842e03d25827d3638fda8629236593ebc04.zip
Re-enable the "Root Mode" warning at the top of lumina-fm, and setup the root detection to work properly.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 6f1624a4..a8cbea2c 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -27,13 +27,12 @@
#include "../ScrollDialog.h"
#define DEBUG 0
+extern bool rootmode;
DirWidget::DirWidget(QString objID, QSettings *settings, QWidget *parent) : QWidget(parent), ui(new Ui::DirWidget){
ui->setupUi(this); //load the designer file
- //if(rootmode = true){ui->label_rootmode->setVisible(true);}
- //else{
- //ui->label_rootmode->setVisible(false);
- //}
+ ui->label_rootmode->setVisible(rootmode);
+
ID = objID;
//Assemble the toolbar for the widget
toolbar = new QToolBar(this);
bgstack15