Commit 5655ee52 authored by Laurent Montel's avatar Laurent Montel 😁

Remove dead code

parent 8a810ad7
......@@ -2490,7 +2490,7 @@ void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, Me
if (!mPluginEditorCheckBeforeSendManagerInterface->execute(params)) {
return;
}
const QStringList recipients = { composerBaseToTrimmed, composerBaseCcTrimmed, composerBaseBccTrimmed};
const QStringList recipients = {composerBaseToTrimmed, composerBaseCcTrimmed, composerBaseBccTrimmed};
setEnabled(false);
......@@ -2508,8 +2508,7 @@ void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, Me
&& !KMailSettings::self()->neverEncryptDrafts()
&& mComposerBase->to().isEmpty() && mComposerBase->cc().isEmpty()) {
KMessageBox::information(this, i18n("You must specify at least one receiver "
"in order to be able to encrypt a draft.")
);
"in order to be able to encrypt a draft."));
return;
}
doDelayedSend(method, saveIn);
......
......@@ -142,11 +142,6 @@ void FillComposerJob::slotOpenComposer()
}
if (mSettings.mForceShowWindow || (!mSettings.mHidden && !iCalAutoSend)) {
cWin->show();
// Activate window - doing this instead of KWin::activateWindow(cWin->winId());
// so that it also works when called from KMailApplication::newInstance()
#if defined Q_WS_X11 && !defined K_WS_QTONLY
KStartupInfo::setNewStartupId(cWin, KStartupInfo::startupId());
#endif
} else {
// Always disable word wrap when we don't show the composer, since otherwise QTextEdit
// gets the widget size wrong and wraps much too early.
......
......@@ -74,11 +74,6 @@ void OpenComposerHiddenJob::slotOpenComposer()
KMail::Composer *cWin = KMail::makeComposer(mMsg, false, false, context);
if (!mSettings.mHidden) {
cWin->show();
// Activate window - doing this instead of KWindowSystem::activateWindow(cWin->winId());
// so that it also works when called from KMailApplication::newInstance()
#if defined Q_OS_X11 && !defined K_WS_QTONLY
KStartupInfo::setNewStartupId(cWin, KStartupInfo::startupId());
#endif
} else {
// Always disable word wrap when we don't show the composer; otherwise,
// QTextEdit gets the widget size wrong and wraps much too early.
......
......@@ -159,11 +159,6 @@ void OpenComposerJob::slotOpenComposer()
}
if (!mOpenComposerSettings.mHidden) {
cWin->show();
// Activate window - doing this instead of KWindowSystem::activateWindow(cWin->winId());
// so that it also works when called from KMailApplication::newInstance()
#if defined Q_OS_X11 && !defined K_WS_QTONLY
KStartupInfo::setNewStartupId(cWin, KStartupInfo::startupId());
#endif
}
deleteLater();
}
......@@ -551,14 +551,6 @@ void KMKernel::openReader(bool onlyCheck)
mWin->show();
activate = false; // new window: no explicit activation (#73591)
}
if (activate) {
// Activate window - doing this instead of KWindowSystem::activateWindow(mWin->winId());
// so that it also works when called from KMailApplication::newInstance()
#if defined Q_OS_X11 && !defined K_WS_QTONLY
KStartupInfo::setNewStartupId(mWin, KStartupInfo::startupId());
#endif
}
}
void KMKernel::openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile,
......
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