Merge remote-tracking branch 'origin/release/19.12'

wilder
David Faure 6 years ago
commit 186492ddee
  1. 1
      agents/mailfilteragent/mailfilteragent.cpp
  2. 3
      agents/sendlateragent/sendlateragent.cpp

@ -381,6 +381,7 @@ void MailFilterAgent::showFilterLogDialog(qlonglong windowId)
{ {
if (!m_filterLogDialog) { if (!m_filterLogDialog) {
m_filterLogDialog = new FilterLogDialog(nullptr); m_filterLogDialog = new FilterLogDialog(nullptr);
m_filterLogDialog->setAttribute(Qt::WA_NativeWindow, true);
} }
KWindowSystem::setMainWindow(m_filterLogDialog->windowHandle(), windowId); KWindowSystem::setMainWindow(m_filterLogDialog->windowHandle(), windowId);
m_filterLogDialog->show(); m_filterLogDialog->show();

@ -138,7 +138,8 @@ void SendLaterAgent::configure(WId windowId)
{ {
QPointer<SendLaterConfigureDialog> dialog = new SendLaterConfigureDialog(); QPointer<SendLaterConfigureDialog> dialog = new SendLaterConfigureDialog();
if (windowId) { if (windowId) {
//KWindowSystem::setMainWindow(dialog->windowHandle(), windowId); dialog->setAttribute(Qt::WA_NativeWindow, true);
KWindowSystem::setMainWindow(dialog->windowHandle(), windowId);
} }
connect(this, &SendLaterAgent::needUpdateConfigDialogBox, dialog.data(), &SendLaterConfigureDialog::slotNeedToReloadConfig); connect(this, &SendLaterAgent::needUpdateConfigDialogBox, dialog.data(), &SendLaterConfigureDialog::slotNeedToReloadConfig);
connect(dialog.data(), &SendLaterConfigureDialog::sendNow, this, &SendLaterAgent::slotSendNow); connect(dialog.data(), &SendLaterConfigureDialog::sendNow, this, &SendLaterAgent::slotSendNow);

Loading…
Cancel
Save