Commit 8db70f50 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Move in own method

parent 6715df1c
Pipeline #40557 failed with stage
in 10 minutes and 6 seconds
......@@ -59,7 +59,12 @@ void ReadServerSieveConfigJob::loadSettings(const QString &conf)
wallet->readPassword(walletEntry, passwd);
mCurrentSieveServerConfig.sieveSettings.password = passwd;
}
loadImapAccountSettings(group);
}
void ReadServerSieveConfigJob::loadImapAccountSettings(const KConfigGroup &group)
{
KWallet::Wallet *wallet = SieveEditorUtil::selectWalletFolder();
//Imap Account Settings
mCurrentSieveServerConfig.sieveImapAccountSettings.setPort(group.readEntry(QStringLiteral("ImapPort"), 0));
mCurrentSieveServerConfig.sieveImapAccountSettings.setServerName(group.readEntry(QStringLiteral("ImapServerName")));
......
......@@ -37,6 +37,7 @@ Q_SIGNALS:
private:
void loadSettings(const QString &conf);
void slotReadNextConfig();
void loadImapAccountSettings(const KConfigGroup &group);
QVector<SieveEditorUtil::SieveServerConfig> mLstConfig;
SieveEditorUtil::SieveServerConfig mCurrentSieveServerConfig;
QStringList mGroupsConfigs;
......
Markdown is supported
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