mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
kget: create password store if required for saving the web interface password but not created yet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8348fc1702
commit
a0a50f2180
1 changed files with 9 additions and 2 deletions
|
@ -49,8 +49,15 @@ void DlgWebinterface::readConfig()
|
||||||
|
|
||||||
void DlgWebinterface::saveSettings()
|
void DlgWebinterface::saveSettings()
|
||||||
{
|
{
|
||||||
if (m_passwdstore && m_passwdstore->openStore(winId())) {
|
if (kcfg_WebinterfaceEnabled->isChecked()) {
|
||||||
m_passwdstore->storePasswd("Webinterface", webinterfacePwd->text(), winId());
|
if (!m_passwdstore) {
|
||||||
|
m_passwdstore = new KPasswdStore(this);
|
||||||
|
m_passwdstore->setStoreID("KGet");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (m_passwdstore->openStore(winId())) {
|
||||||
|
m_passwdstore->storePasswd("Webinterface", webinterfacePwd->text(), winId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
emit saved();
|
emit saved();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue