Commit def208f2 authored by Andrey Borzenkov's avatar Andrey Borzenkov
Browse files

save changed settings after exiting applet configuration interface

Caller of KCmoduleProxy is reponsible for saving changed settings.

BUG: 257777
parent fac15b53
......@@ -277,6 +277,18 @@ void NetworkManagerApplet::createConfigurationInterface(KConfigDialog *parent)
parent->addPage(m_kcmNMTray, m_kcmNMTray->moduleInfo().moduleName(),
connect(parent, SIGNAL(applyClicked()), this, SLOT(saveConfiguration()));
connect(parent, SIGNAL(okClicked()), this, SLOT(saveConfiguration()));
void NetworkManagerApplet::saveConfiguration()
// kcm_networkmanagement implicitly saves connection definition after
// editing is finished, so no need to call its save() method
// FIXME This just writes out changed values to ini file. kded module
// still continues to use old value
void NetworkManagerApplet::constraintsEvent(Plasma::Constraints constraints)
......@@ -110,6 +110,8 @@ private Q_SLOTS:
void updatePixmap();
void repaint();
void clearActivatedOverlay();
// Request KCM module to persist changes
void saveConfiguration();
bool hasInterfaceOfType(Solid::Control::NetworkInterface::Type type);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment