diff --git a/sources/plasmoid/configwindow.ui b/sources/plasmoid/configwindow.ui
index 62a6309..0b3fd85 100644
--- a/sources/plasmoid/configwindow.ui
+++ b/sources/plasmoid/configwindow.ui
@@ -88,6 +88,42 @@
+ -
+
+
-
+
+
+
+ 80
+ 23
+
+
+
+ Path to GUI
+
+
+
+ -
+
+
+ -
+
+
+
+ 100
+ 23
+
+
+
+ Browse
+
+
+ true
+
+
+
+
+
-
@@ -538,6 +574,8 @@
tabWidget
spinBox_autoUpdate
+ lineEdit_gui
+ pushButton_gui
checkBox_showBigInterface
checkBox_showNetDev
checkBox_showExtIp
diff --git a/sources/plasmoid/netctl.cpp b/sources/plasmoid/netctl.cpp
index 73e7d06..59bab2e 100644
--- a/sources/plasmoid/netctl.cpp
+++ b/sources/plasmoid/netctl.cpp
@@ -107,6 +107,7 @@ void Netctl::createConfigurationInterface(KConfigDialog *parent)
uiConfig.setupUi(configwin);
uiConfig.spinBox_autoUpdate->setValue(autoUpdateInterval);
+ uiConfig.lineEdit_gui->setText(guiPath);
if (showBigInterface)
uiConfig.checkBox_showBigInterface->setCheckState(Qt::Checked);
else
@@ -148,6 +149,7 @@ void Netctl::configAccepted()
KConfigGroup cg = config();
cg.writeEntry("autoUpdateInterval", uiConfig.spinBox_autoUpdate->value());
+ cg.writeEntry("guiPath", uiConfig.lineEdit_gui->text());
if (uiConfig.checkBox_showBigInterface->checkState() == 0)
cg.writeEntry("showBigInterface", false);
else
@@ -180,6 +182,7 @@ void Netctl::configChanged()
KConfigGroup cg = config();
autoUpdateInterval = cg.readEntry("autoUpdateInterval", 1000);
+ guiPath = cg.readEntry("guiPath", "/usr/bin/netctl-gui");
showBigInterface = cg.readEntry("showBigInterface", true);
showNetDev = cg.readEntry("showNetDev", true);
showExtIp = cg.readEntry("showExtIp", true);
diff --git a/sources/plasmoid/netctl.h b/sources/plasmoid/netctl.h
index 583e7c3..3225379 100644
--- a/sources/plasmoid/netctl.h
+++ b/sources/plasmoid/netctl.h
@@ -53,6 +53,7 @@ private:
QStringList formatLine;
// configuration
int autoUpdateInterval;
+ QString guiPath;
bool showBigInterface;
bool showNetDev;
bool showExtIp;