mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kutils: ensure startup notification events are processed from KEMailDialog::showEvent()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
b2597e71e5
commit
252c2b96d5
1 changed files with 3 additions and 2 deletions
|
@ -173,6 +173,9 @@ bool KEMailDialog::setAttach(const QStringList &attach)
|
|||
|
||||
void KEMailDialog::showEvent(QShowEvent *event)
|
||||
{
|
||||
KDialog::showEvent(event);
|
||||
qApp->processEvents();
|
||||
|
||||
// NOTE: delayed until show so that startup notification is done, cursor is not grabbed and
|
||||
// the password dialog is interactable via mouse
|
||||
const bool isuserempty = d->ui.userlineedit->text().isEmpty();
|
||||
|
@ -188,8 +191,6 @@ void KEMailDialog::showEvent(QShowEvent *event)
|
|||
d->ui.passlineedit->setText(kemailsettings->getSetting(KEMailSettings::OutServerPass));
|
||||
}
|
||||
delete kemailsettings;
|
||||
|
||||
KDialog::showEvent(event);
|
||||
}
|
||||
|
||||
void KEMailDialog::slotButtonClicked(int button)
|
||||
|
|
Loading…
Add table
Reference in a new issue