raven-rhel8/extras/lxqt2/pcmanfm-qt/pcmanfm-qt_no-root-warn.patch
2024-09-30 18:23:59 +06:00

22 lines
1014 B
Diff

diff -Naur pcmanfm-qt-0.15.1_orig/pcmanfm/mainwindow.cpp pcmanfm-qt-0.15.1/pcmanfm/mainwindow.cpp
--- pcmanfm-qt-0.15.1_orig/pcmanfm/mainwindow.cpp 2020-05-17 11:31:18.000000000 +0600
+++ pcmanfm-qt-0.15.1/pcmanfm/mainwindow.cpp 2020-06-17 14:03:00.102470241 +0600
@@ -136,16 +136,6 @@
// setup user interface
ui.setupUi(this);
- // add a warning label to the root instance
- if(geteuid() == 0) {
- QLabel *warningLabel = new QLabel(tr("Root Instance"));
- warningLabel->setAlignment(Qt::AlignCenter);
- warningLabel->setTextInteractionFlags(Qt::NoTextInteraction);
- warningLabel->setStyleSheet(QLatin1String("QLabel {background-color: #7d0000; color: white; font-weight:bold; border-radius: 3px; margin: 2px; padding: 5px;}"));
- ui.verticalLayout->addWidget(warningLabel);
- ui.verticalLayout->setStretch(0, 1);
- }
-
splitView_ = path && settings.splitView(); // splt view needs a path
// hide menu items that are not usable