Commit d4bc52ae authored by Laurent Montel's avatar Laurent Montel 😁

Display a warning when mailtransport was removed

parent 78651887
......@@ -50,7 +50,7 @@ set(KCALENDARCORE_LIB_VERSION "5.6.40")
set(CALENDARUTILS_LIB_VERSION "5.6.40")
set(IDENTITYMANAGEMENT_LIB_VERSION "5.6.41")
set(KLDAP_LIB_VERSION "5.6.40")
set(KMAILTRANSPORT_LIB_VERSION "5.6.42")
set(KMAILTRANSPORT_LIB_VERSION "5.6.43")
set(KONTACTINTERFACE_LIB_VERSION "5.6.40")
set(KMIME_LIB_VERSION "5.6.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.6.40")
......
......@@ -334,6 +334,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
transport->setToolTip(i18n("Select the outgoing account to use for sending this message"));
mComposerBase->setTransportCombo(transport);
connect(transport, QOverload<int>::of(&MailTransport::TransportComboBox::activated), this, &KMComposerWin::slotTransportChanged);
connect(transport, &MailTransport::TransportComboBox::transportRemoved, this, &KMComposerWin::slotTransportRemoved);
mEdtFrom = new MessageComposer::ComposerLineEdit(false, mHeadersArea);
mEdtFrom->setObjectName(QStringLiteral("fromLine"));
mEdtFrom->setRecentAddressConfig(MessageComposer::MessageComposerSettings::self()->config());
......@@ -3480,3 +3481,11 @@ void KMComposerWin::slotIdentityDeleted(uint uoid)
mIncorrectIdentityFolderWarning->identityInvalid();
}
}
void KMComposerWin::slotTransportRemoved(int id, const QString &name)
{
Q_UNUSED(name);
if (mComposerBase->transportComboBox()->currentTransportId() == id) {
mIncorrectIdentityFolderWarning->mailTransportIsInvalid();
}
}
......@@ -535,6 +535,7 @@ private:
void slotCryptoModuleSelected();
void slotFccIsInvalid();
void slotIdentityDeleted(uint uoid);
void slotTransportRemoved(int id, const QString &name);
void updateComposerAfterIdentityChanged(const KIdentityManagement::Identity &ident, uint uoid, bool wasModified);
......
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