Blame plasma-nm-0.9.3.2-upstream-fixes.patch

4c36642
diff --git a/applet/declarative/contents/ui/CompactRepresentation.qml b/applet/declarative/contents/ui/CompactRepresentation.qml
4c36642
index ac2c9fc..d610da2 100644
4c36642
--- a/applet/declarative/contents/ui/CompactRepresentation.qml
4c36642
+++ b/applet/declarative/contents/ui/CompactRepresentation.qml
4c36642
@@ -45,43 +45,45 @@ Item {
4c36642
     PlasmaCore.SvgItem {
4c36642
         id: connectionIcon;
4c36642
 
4c36642
-        anchors.fill: parent;
4c36642
+        anchors.centerIn: parent
4c36642
+        width: Math.min(parent.width, parent.height)
4c36642
+        height: width
4c36642
         svg: svgIcons;
4c36642
         elementId: connectionIconProvider.connectionSvgIcon;
4c36642
-    }
4c36642
 
4c36642
-    QIconItem {
4c36642
-        id: hoverIcon;
4c36642
+        QIconItem {
4c36642
+            id: hoverIcon;
4c36642
 
4c36642
-        width: parent.width/2;
4c36642
-        height: parent.height/2;
4c36642
-        anchors {
4c36642
-            bottom: parent.bottom;
4c36642
-            right: parent.right;
4c36642
+            width: parent.width/2;
4c36642
+            height: parent.height/2;
4c36642
+            anchors {
4c36642
+                bottom: parent.bottom;
4c36642
+                right: parent.right;
4c36642
+            }
4c36642
+            icon: connectionIconProvider.connectionIndicatorIcon;
4c36642
         }
4c36642
-        icon: connectionIconProvider.connectionIndicatorIcon;
4c36642
-    }
4c36642
 
4c36642
-    PlasmaComponents.BusyIndicator {
4c36642
-        id: connectingIndicator;
4c36642
+        PlasmaComponents.BusyIndicator {
4c36642
+            id: connectingIndicator;
4c36642
 
4c36642
-        anchors.fill: parent;
4c36642
-        running: connectionIconProvider.connecting;
4c36642
-        visible: running;
4c36642
-    }
4c36642
+            anchors.fill: parent;
4c36642
+            running: connectionIconProvider.connecting;
4c36642
+            visible: running;
4c36642
+        }
4c36642
 
4c36642
-    MouseArea {
4c36642
-        id: mouseAreaPopup;
4c36642
+        MouseArea {
4c36642
+            id: mouseAreaPopup;
4c36642
 
4c36642
-        anchors.fill: parent;
4c36642
-        hoverEnabled: true;
4c36642
-        onClicked: plasmoid.togglePopup();
4c36642
+            anchors.fill: parent;
4c36642
+            hoverEnabled: true;
4c36642
+            onClicked: plasmoid.togglePopup();
4c36642
 
4c36642
-        PlasmaCore.ToolTip {
4c36642
-            id: tooltip;
4c36642
-            target: mouseAreaPopup;
4c36642
-            image: connectionIconProvider.connectionPixmapIcon;
4c36642
-            subText: networkStatus.activeConnections;
4c36642
+            PlasmaCore.ToolTip {
4c36642
+                id: tooltip;
4c36642
+                target: mouseAreaPopup;
4c36642
+                image: connectionIconProvider.connectionPixmapIcon;
4c36642
+                subText: networkStatus.activeConnections;
4c36642
+            }
4c36642
         }
4c36642
     }
4c36642
 }
64a5a87
diff --git a/applet/declarative/contents/ui/ConnectionItem.qml b/applet/declarative/contents/ui/ConnectionItem.qml
64a5a87
index 009ab0e..be7cf42 100644
64a5a87
--- a/applet/declarative/contents/ui/ConnectionItem.qml
64a5a87
+++ b/applet/declarative/contents/ui/ConnectionItem.qml
64a5a87
@@ -120,7 +120,6 @@ PlasmaComponents.ListItem {
64a5a87
             }
64a5a87
             text: itemName;
64a5a87
             elide: Text.ElideRight;
64a5a87
-//             font.weight: itemConnectionState == PlasmaNM.Enums.Activated ? Font.DemiBold : Font.Normal;
64a5a87
             font.italic: itemConnectionState == PlasmaNM.Enums.Activating ? true : false;
64a5a87
         }
64a5a87
 
64a5a87
@@ -255,6 +254,9 @@ PlasmaComponents.ListItem {
64a5a87
                 echoMode: showPasswordCheckbox.checked ? TextInput.Normal : TextInput.Password
64a5a87
                 visible: predictableWirelessPassword;
64a5a87
                 placeholderText: i18n("Password...");
64a5a87
+                onAccepted: {
64a5a87
+                    connectButton.clicked();
64a5a87
+                }
64a5a87
             }
64a5a87
 
64a5a87
             PlasmaComponents.CheckBox {
64a5a87
diff --git a/declarative-plugins/applet/connectionicon.cpp b/declarative-plugins/applet/connectionicon.cpp
64a5a87
index 225f565..82d72fa 100644
64a5a87
--- a/declarative-plugins/applet/connectionicon.cpp
64a5a87
+++ b/declarative-plugins/applet/connectionicon.cpp
64a5a87
@@ -279,6 +279,13 @@ void ConnectionIcon::setIcons()
64a5a87
                             Q_EMIT connectionPixmapIconChanged("preferences-system-bluetooth");
64a5a87
                         }
64a5a87
                     }
64a5a87
+                } else {
64a5a87
+                    connectionFound = true;
64a5a87
+                    m_connectionSvgIcon = "network-wired-activated";
64a5a87
+                    NMAppletDebug() << "Emit signal connectionSvgIconChanged(network-wired-activated)";
64a5a87
+                    Q_EMIT connectionSvgIconChanged("network-wired-activated");
64a5a87
+                    m_connectionPixmapIcon = "network-wired-activated";
64a5a87
+                    Q_EMIT connectionPixmapIconChanged("network-wired-activated");
64a5a87
                 }
64a5a87
             }
64a5a87
         } else if (active->vpn() && active->state() == NetworkManager::ActiveConnection::Activated) {
64a5a87
diff --git a/editor/connectioneditor.cpp b/editor/connectioneditor.cpp
64a5a87
index 644b8f6..955d346 100644
64a5a87
--- a/editor/connectioneditor.cpp
64a5a87
+++ b/editor/connectioneditor.cpp
64a5a87
@@ -139,6 +139,7 @@ ConnectionEditor::ConnectionEditor(QWidget* parent, Qt::WindowFlags flags):
64a5a87
 
64a5a87
     kAction = new KAction(KIcon("edit-delete"), i18n("Delete"), this);
64a5a87
     kAction->setEnabled(false);
64a5a87
+    kAction->setShortcut(Qt::Key_Delete);
64a5a87
     connect(kAction, SIGNAL(triggered()), SLOT(removeConnection()));
64a5a87
     actionCollection()->addAction("delete_connection", kAction);
64a5a87
 
64a5a87
diff --git a/kded/passworddialog.h b/kded/passworddialog.h
64a5a87
index 7ffdc8f..f9e40a6 100644
64a5a87
--- a/kded/passworddialog.h
64a5a87
+++ b/kded/passworddialog.h
64a5a87
@@ -19,7 +19,7 @@
64a5a87
     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
64a5a87
 */
64a5a87
 
64a5a87
-#ifndef PLASMA_NM_PASSWOR_DDIALOG_H
64a5a87
+#ifndef PLASMA_NM_PASSWORD_DIALOG_H
64a5a87
 #define PLASMA_NM_PASSWORD_DIALOG_H
64a5a87
 
64a5a87
 #include <NetworkManagerQt/ConnectionSettings>
64a5a87
diff --git a/kded/service.cpp b/kded/service.cpp
4c36642
index 14966dd..4db016d 100644
64a5a87
--- a/kded/service.cpp
64a5a87
+++ b/kded/service.cpp
4c36642
@@ -32,6 +32,8 @@
4c36642
 #include "bluetoothmonitor.h"
4c36642
 
4c36642
 #include <QDBusMetaType>
4c36642
+#include <QDBusServiceWatcher>
4c36642
+#include <QDBusConnection>
4c36642
 
4c36642
 K_PLUGIN_FACTORY(NetworkManagementServiceFactory, registerPlugin<NetworkManagementService>();)
4c36642
 K_EXPORT_PLUGIN(NetworkManagementServiceFactory("networkmanagement", "plasmanetworkmanagement-kded"))
4c36642
@@ -45,10 +47,34 @@ public:
64a5a87
 NetworkManagementService::NetworkManagementService(QObject * parent, const QVariantList&)
64a5a87
         : KDEDModule(parent), d_ptr(new NetworkManagementServicePrivate)
64a5a87
 {
64a5a87
-    Q_D(NetworkManagementService);
64a5a87
-
64a5a87
     KGlobal::insertCatalog("plasma_applet_org.kde.networkmanagement");  // mobile wizard
64a5a87
 
4c36642
+    QDBusReply<bool> reply = QDBusConnection::sessionBus().interface()->isServiceRegistered("org.kde.plasma-desktop");
4c36642
+    if (reply.value()) {
4c36642
+        doInitialization();
4c36642
+    } else {
4c36642
+        QDBusServiceWatcher * watcher = new QDBusServiceWatcher("org.kde.plasma-desktop", QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForOwnerChange, this);
4c36642
+        connect(watcher, SIGNAL(serviceRegistered(QString)), SLOT(finishInitialization()));
4c36642
+    }
64a5a87
+}
64a5a87
+
64a5a87
+NetworkManagementService::~NetworkManagementService()
64a5a87
+{
64a5a87
+    delete d_ptr;
64a5a87
+}
64a5a87
+
64a5a87
+void NetworkManagementService::finishInitialization()
64a5a87
+{
4c36642
+    QDBusServiceWatcher * watcher = static_cast<QDBusServiceWatcher*>(sender());
4c36642
+    disconnect(watcher, SIGNAL(serviceRegistered(QString)), this,  SLOT(finishInitialization()));
4c36642
+
4c36642
+    doInitialization();
4c36642
+}
4c36642
+
4c36642
+void NetworkManagementService::doInitialization()
4c36642
+{
64a5a87
+    Q_D(NetworkManagementService);
64a5a87
+
64a5a87
     d->agent = new SecretAgent(this);
64a5a87
     new Notification(this);
64a5a87
 #if WITH_MODEMMANAGER_SUPPORT
4c36642
@@ -57,7 +83,3 @@ NetworkManagementService::NetworkManagementService(QObject * parent, const QVari
64a5a87
     new BluetoothMonitor(this);
64a5a87
 }
64a5a87
 
64a5a87
-NetworkManagementService::~NetworkManagementService()
64a5a87
-{
64a5a87
-    delete d_ptr;
64a5a87
-}
64a5a87
diff --git a/kded/service.h b/kded/service.h
4c36642
index 5c576c6..8182523 100644
64a5a87
--- a/kded/service.h
64a5a87
+++ b/kded/service.h
4c36642
@@ -38,8 +38,12 @@ class KDE_EXPORT NetworkManagementService : public KDEDModule
64a5a87
 public:
64a5a87
     NetworkManagementService(QObject * parent, const QVariantList&);
64a5a87
     virtual ~NetworkManagementService();
64a5a87
+private Q_SLOTS:
64a5a87
+   void finishInitialization();
64a5a87
 private:
64a5a87
     NetworkManagementServicePrivate * d_ptr;
4c36642
+
4c36642
+    void doInitialization();
64a5a87
 };
4c36642
 
4c36642
 #endif // PLASMANM_KDED_SERVICE_H
4c36642
diff --git a/lib/editor/connectiondetaileditor.cpp b/lib/editor/connectiondetaileditor.cpp
4c36642
index 06fa706..d6fcbd7 100644
4c36642
--- a/lib/editor/connectiondetaileditor.cpp
4c36642
+++ b/lib/editor/connectiondetaileditor.cpp
4c36642
@@ -181,6 +181,8 @@ ConnectionDetailEditor::~ConnectionDetailEditor()
4c36642
 
4c36642
 void ConnectionDetailEditor::initEditor()
4c36642
 {
4c36642
+    enableOKButton(false);
4c36642
+
4c36642
     if (!m_new) {
4c36642
         NetworkManager::Connection::Ptr connection = NetworkManager::findConnectionByUuid(m_connection->uuid());
4c36642
         if (connection) {
64a5a87
diff --git a/lib/editor/ipv4widget.cpp b/lib/editor/ipv4widget.cpp
64a5a87
index 2d651b0..3676f00 100644
64a5a87
--- a/lib/editor/ipv4widget.cpp
64a5a87
+++ b/lib/editor/ipv4widget.cpp
64a5a87
@@ -269,7 +269,7 @@ void IPv4Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->dhcpClientId->setEnabled(true);
64a5a87
         m_ui->ipv4RequiredCB->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -282,7 +282,7 @@ void IPv4Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->dhcpClientId->setEnabled(true);
64a5a87
         m_ui->ipv4RequiredCB->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -295,7 +295,7 @@ void IPv4Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->dhcpClientId->setEnabled(false);
64a5a87
         m_ui->ipv4RequiredCB->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(true);
64a5a87
         m_ui->tableViewAddresses->setVisible(true);
64a5a87
         m_ui->btnAdd->setVisible(true);
64a5a87
         m_ui->btnRemove->setVisible(true);
64a5a87
@@ -308,7 +308,7 @@ void IPv4Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->dhcpClientId->setEnabled(false);
64a5a87
         m_ui->ipv4RequiredCB->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(false);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -321,7 +321,7 @@ void IPv4Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->dhcpClientId->setEnabled(false);
64a5a87
         m_ui->ipv4RequiredCB->setEnabled(false);
64a5a87
         m_ui->btnRoutes->setEnabled(false);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
diff --git a/lib/editor/ipv6widget.cpp b/lib/editor/ipv6widget.cpp
64a5a87
index 1d84f7d..8c1c5fe 100644
64a5a87
--- a/lib/editor/ipv6widget.cpp
64a5a87
+++ b/lib/editor/ipv6widget.cpp
64a5a87
@@ -170,7 +170,7 @@ void IPv6Widget::loadConfig(const NetworkManager::Setting::Ptr &setting)
64a5a87
 
64a5a87
     // privacy
64a5a87
     if (ipv6Setting->privacy() != NetworkManager::Ipv6Setting::Unknown) {
64a5a87
-        m_ui->privacyCombo->setCurrentIndex(static_cast<int>(ipv6Setting->privacy()));
64a5a87
+        m_ui->privacyCombo->setCurrentIndex(static_cast<int>(ipv6Setting->privacy()) + 1);
64a5a87
     }
64a5a87
 }
64a5a87
 
64a5a87
@@ -242,8 +242,8 @@ QVariantMap IPv6Widget::setting(bool agentOwned) const
64a5a87
     }
64a5a87
 
64a5a87
     // privacy
64a5a87
-    if (m_ui->privacyCombo->isEnabled()) {
64a5a87
-        ipv6Setting.setPrivacy(static_cast<NetworkManager::Ipv6Setting::IPv6Privacy>(m_ui->privacyCombo->currentIndex()));
64a5a87
+    if (m_ui->privacyCombo->isEnabled() && m_ui->privacyCombo->currentIndex()) {
64a5a87
+        ipv6Setting.setPrivacy(static_cast<NetworkManager::Ipv6Setting::IPv6Privacy>(m_ui->privacyCombo->currentIndex() - 1));
64a5a87
     }
64a5a87
 
64a5a87
     return ipv6Setting.toMap();
64a5a87
@@ -260,7 +260,7 @@ void IPv6Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->ipv6RequiredCB->setEnabled(true);
64a5a87
         m_ui->privacyCombo->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -273,7 +273,7 @@ void IPv6Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->ipv6RequiredCB->setEnabled(true);
64a5a87
         m_ui->privacyCombo->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -286,7 +286,7 @@ void IPv6Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->ipv6RequiredCB->setEnabled(true);
64a5a87
         m_ui->privacyCombo->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(true);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(true);
64a5a87
         m_ui->tableViewAddresses->setVisible(true);
64a5a87
         m_ui->btnAdd->setVisible(true);
64a5a87
         m_ui->btnRemove->setVisible(true);
64a5a87
@@ -299,7 +299,7 @@ void IPv6Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->ipv6RequiredCB->setEnabled(true);
64a5a87
         m_ui->privacyCombo->setEnabled(true);
64a5a87
         m_ui->btnRoutes->setEnabled(false);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
@@ -312,7 +312,7 @@ void IPv6Widget::slotModeComboChanged(int index)
64a5a87
         m_ui->ipv6RequiredCB->setEnabled(false);
64a5a87
         m_ui->privacyCombo->setEnabled(false);
64a5a87
         m_ui->btnRoutes->setEnabled(false);
64a5a87
-
64a5a87
+        m_ui->tableViewAddresses->setEnabled(false);
64a5a87
         m_ui->tableViewAddresses->setVisible(false);
64a5a87
         m_ui->btnAdd->setVisible(false);
64a5a87
         m_ui->btnRemove->setVisible(false);
64a5a87
diff --git a/lib/editor/security802-1x.cpp b/lib/editor/security802-1x.cpp
64a5a87
index 63227cb..b3bc364 100644
64a5a87
--- a/lib/editor/security802-1x.cpp
64a5a87
+++ b/lib/editor/security802-1x.cpp
64a5a87
@@ -161,11 +161,11 @@ QVariantMap Security8021x::setting(bool agentOwned) const
64a5a87
         if (!m_ui->tlsIdentity->text().isEmpty())
64a5a87
             setting.setIdentity(m_ui->tlsIdentity->text());
64a5a87
         if (!m_ui->tlsUserCert->url().isEmpty())
64a5a87
-            setting.setClientCertificate(QFile::encodeName(m_ui->tlsUserCert->url().url()));
64a5a87
+            setting.setClientCertificate(QFile::encodeName(m_ui->tlsUserCert->url().url()).append('\0'));
64a5a87
         if (!m_ui->tlsCACert->url().isEmpty())
64a5a87
-            setting.setCaCertificate(QFile::encodeName(m_ui->tlsCACert->url().url()));
64a5a87
+            setting.setCaCertificate(QFile::encodeName(m_ui->tlsCACert->url().url()).append('\0'));
64a5a87
         if (!m_ui->tlsPrivateKey->url().isEmpty())
64a5a87
-            setting.setPrivateKey(QFile::encodeName(m_ui->tlsPrivateKey->url().url()));
64a5a87
+            setting.setPrivateKey(QFile::encodeName(m_ui->tlsPrivateKey->url().url()).append('\0'));
64a5a87
         if (!m_ui->tlsPrivateKeyPassword->text().isEmpty())
64a5a87
             setting.setPrivateKeyPassword(m_ui->tlsPrivateKeyPassword->text());
64a5a87
 
64a5a87
@@ -190,7 +190,7 @@ QVariantMap Security8021x::setting(bool agentOwned) const
64a5a87
             setting.setPhase1FastProvisioning(static_cast<NetworkManager::Security8021xSetting::FastProvisioning>(m_ui->pacMethod->currentIndex() + 1));
64a5a87
         }
64a5a87
         if (!m_ui->pacFile->text().isEmpty())
64a5a87
-            setting.setPacFile(QFile::encodeName(m_ui->pacFile->url().url()));
64a5a87
+            setting.setPacFile(QFile::encodeName(m_ui->pacFile->url().url()).append('\0'));
64a5a87
         if (m_ui->fastInnerAuth->currentIndex() == 0)
64a5a87
             setting.setPhase2AuthMethod(NetworkManager::Security8021xSetting::AuthMethodGtc);
64a5a87
         else
64a5a87
@@ -209,7 +209,7 @@ QVariantMap Security8021x::setting(bool agentOwned) const
64a5a87
         if (!m_ui->ttlsAnonIdentity->text().isEmpty())
64a5a87
             setting.setAnonymousIdentity(m_ui->ttlsAnonIdentity->text());
64a5a87
         if (!m_ui->ttlsCACert->text().isEmpty())
64a5a87
-            setting.setCaCertificate(QFile::encodeName(m_ui->ttlsCACert->url().url()));
64a5a87
+            setting.setCaCertificate(QFile::encodeName(m_ui->ttlsCACert->url().url()).append('\0'));
64a5a87
         const int innerAuth = m_ui->ttlsInnerAuth->currentIndex();
64a5a87
         if (innerAuth == 0)
64a5a87
             setting.setPhase2AuthMethod(NetworkManager::Security8021xSetting::AuthMethodPap);
64a5a87
@@ -233,7 +233,7 @@ QVariantMap Security8021x::setting(bool agentOwned) const
64a5a87
         if (!m_ui->peapAnonIdentity->text().isEmpty())
64a5a87
             setting.setAnonymousIdentity(m_ui->peapAnonIdentity->text());
64a5a87
         if (!m_ui->peapCACert->text().isEmpty())
64a5a87
-            setting.setCaCertificate(QFile::encodeName(m_ui->peapCACert->url().url()));
64a5a87
+            setting.setCaCertificate(QFile::encodeName(m_ui->peapCACert->url().url()).append('\0'));
64a5a87
         setting.setPhase1PeapVersion(static_cast<NetworkManager::Security8021xSetting::PeapVersion>(m_ui->peapVersion->currentIndex() - 1));
64a5a87
         const int innerAuth = m_ui->peapInnerAuth->currentIndex();
64a5a87
         if (innerAuth == 0)
64a5a87
diff --git a/lib/editor/ui/ipv6.ui b/lib/editor/ui/ipv6.ui
64a5a87
index d751ba3..8a5a4bf 100644
64a5a87
--- a/lib/editor/ui/ipv6.ui
64a5a87
+++ b/lib/editor/ui/ipv6.ui
64a5a87
@@ -330,6 +330,11 @@
64a5a87
     <widget class="KComboBox" name="privacyCombo">
64a5a87
      <item>
64a5a87
       <property name="text">
64a5a87
+       <string>Default</string>
64a5a87
+      </property>
64a5a87
+     </item>
64a5a87
+     <item>
64a5a87
+      <property name="text">
64a5a87
        <string comment="privacy disabled">Disabled</string>
64a5a87
       </property>
64a5a87
      </item>