summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-03-26 07:54:17 +0200
committerLaurent Montel <[email protected]>2018-03-26 07:54:17 +0200
commitf74a769d8ca82a6a146b31f64b29faa8654418dc (patch)
tree695be88d43bce2a39e15cdac09e5684652b7ede9
parentf01a513e0c5a05da87e9ff1c893ed7765ff07520 (diff)
Don't use new connect api as we connect/disconnect it. Otherwise it duplicates
emails. Bug found by david
-rw-r--r--src/editor/kmcomposerwin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/editor/kmcomposerwin.cpp b/src/editor/kmcomposerwin.cpp
index 1a884b2..eb8038e 100644
--- a/src/editor/kmcomposerwin.cpp
+++ b/src/editor/kmcomposerwin.cpp
@@ -448,9 +448,11 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
applyMainWindowSettings(KMKernel::self()->config()->group("Composer"));
connect(mEdtSubject, &PimCommon::LineEditWithAutoCorrection::textChanged, this, &KMComposerWin::slotUpdateWindowTitle);
- connect(identity, &KIdentityManagement::IdentityCombo::identityChanged, [this](uint val) {
- slotIdentityChanged(val);
- });
+ //Laurent: don't use new connect api here as we connect/disconnect it.
+// connect(identity, &KIdentityManagement::IdentityCombo::identityChanged, [this](uint val) {
+// slotIdentityChanged(val);
+// });
+ connect(identity, SIGNAL(identityChanged(uint)), this, SLOT(slotIdentityChanged(uint)));
connect(kmkernel->identityManager(), QOverload<uint>::of(&KIdentityManagement::IdentityManager::changed), this, [this](uint val) {
if (mComposerBase->identityCombo()->currentIdentity() == val) {
slotIdentityChanged(val);
@@ -619,7 +621,6 @@ void KMComposerWin::readConfig(bool reload /* = false */)
if (!ident.fcc().isEmpty()) {
fccName = ident.fcc();
}
- qDebug() <<" fccName" << fccName;
setFcc(fccName);
}
@@ -1619,7 +1620,6 @@ void KMComposerWin::setMessage(const KMime::Message::Ptr &newMsg, bool lastSignS
if (auto hdr = mMsg->headerByType("X-KMail-Fcc")) {
kmailFcc = hdr->asUnicodeString();
}
- qDebug() << "sssssssssssssssssssssssssss22222222" << kmailFcc;
if (kmailFcc.isEmpty()) {
setFcc(ident.fcc());
} else {