Commit d413710b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Try to fix show composer/reader on top when we open it

But found by Filipe
parent 84e713b0
......@@ -73,6 +73,8 @@ void OpenComposerHiddenJob::slotOpenComposer()
KMail::Composer *cWin = KMail::makeComposer(mMsg, false, false, context);
if (!mSettings.mHidden) {
cWin->show();
cWin->raise();
cWin->activateWindow();
} else {
// Always disable word wrap when we don't show the composer; otherwise,
// QTextEdit gets the widget size wrong and wraps much too early.
......
......@@ -549,11 +549,15 @@ void KMKernel::openReader(bool onlyCheck, bool startInTray)
activate = !onlyCheck; // existing window: only activate if not --check
if (activate) {
win->show();
win->raise();
win->activateWindow();
}
} else {
KMMainWin *win = new KMMainWin;
if (!startInTray && !KMailSettings::self()->startInTray()) {
win->show();
win->raise();
win->activateWindow();
}
activate = false; // new window: no explicit activation (#73591)
}
......@@ -711,6 +715,8 @@ bool KMKernel::showMail(qint64 serialNumber)
win->showMessage(MessageCore::MessageCoreSettings::self()->overrideCharacterEncoding(),
item, item.parentCollection());
win->show();
win->raise();
win->activateWindow();
return true;
}
}
......
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