diff --git a/editor/kmcomposewin.cpp b/editor/kmcomposewin.cpp index bd3d6ca91..9204afe8e 100644 --- a/editor/kmcomposewin.cpp +++ b/editor/kmcomposewin.cpp @@ -412,9 +412,11 @@ KMComposeWin::KMComposeWin( const KMime::Message::Ptr &aMsg, bool lastSignState, connect(mAttachmentMissing, SIGNAL(explicitClosedMissingAttachment()), this, SLOT(slotExplicitClosedMissingAttachment())); v->addWidget(mAttachmentMissing); - m_verifyMissingAttachment = new QTimer(this); - m_verifyMissingAttachment->start(1000*5); - connect( m_verifyMissingAttachment, SIGNAL(timeout()), this, SLOT(slotVerifyMissingAttachmentTimeout()) ); + if (GlobalSettings::self()->showForgottenAttachmentWarning()) { + m_verifyMissingAttachment = new QTimer(this); + m_verifyMissingAttachment->start(1000*5); + connect( m_verifyMissingAttachment, SIGNAL(timeout()), this, SLOT(slotVerifyMissingAttachmentTimeout()) ); + } connect( attachmentController, SIGNAL(fileAttached()), mAttachmentMissing, SLOT(slotFileAttached()) ); mExternalEditorWarning = new ExternalEditorWarning(this);