Removed config option to apply operations as non-root
This commit is contained in:
parent
3aed3ccd93
commit
bf65a186bd
|
@ -6,39 +6,11 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>367</width>
|
||||
<width>449</width>
|
||||
<height>420</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>1</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Permissions</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="kcfg_allowApplyOperationsAsNonRoot">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow applying operations without administrator privileges</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_5">
|
||||
<property name="sizePolicy">
|
||||
|
|
|
@ -86,11 +86,7 @@
|
|||
#include <KIO/CopyJob>
|
||||
#include <KIO/Job>
|
||||
#include <KJobWidgets>
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <typeinfo>
|
||||
#include "config.h"
|
||||
|
||||
/** Creates a new MainWindow instance.
|
||||
@param parent the parent widget
|
||||
|
@ -505,8 +501,7 @@ void MainWindow::enableActions()
|
|||
actionCollection()->action(QStringLiteral("clearAllOperations"))
|
||||
->setEnabled(operationStack().size() > 0);
|
||||
actionCollection()->action(QStringLiteral("applyAllOperations"))
|
||||
->setEnabled(operationStack().size() > 0 && (geteuid() == 0 ||
|
||||
Config::allowApplyOperationsAsNonRoot()));
|
||||
->setEnabled(operationStack().size() > 0);
|
||||
|
||||
const bool readOnly = pmWidget().selectedDevice() == nullptr ||
|
||||
pmWidget().selectedDevice()->partitionTable() == nullptr ||
|
||||
|
|
|
@ -54,10 +54,6 @@
|
|||
<label context="@label">Align partitions per default</label>
|
||||
<default>true</default>
|
||||
</entry>
|
||||
<entry name="allowApplyOperationsAsNonRoot" type="Bool">
|
||||
<label context="@label">Allow applying operations without administrator privileges</label>
|
||||
<default>false</default>
|
||||
</entry>
|
||||
<entry key="fileSystemColorCode$(colorNumber)" type="Color">
|
||||
<label context="@label">File system colors</label>
|
||||
<parameter name="colorNumber" type="UInt" max="29"/>
|
||||
|
|
Loading…
Reference in New Issue