Commit 8219c817 authored by Laurent Montel's avatar Laurent Montel 😁

Use directly KWindowSystem::setMainWindow

parent 01afddb1
...@@ -122,11 +122,7 @@ void NotesAgent::showConfigureDialog(qlonglong windowId) ...@@ -122,11 +122,7 @@ void NotesAgent::showConfigureDialog(qlonglong windowId)
{ {
QPointer<NotesAgentSettingsDialog> dialog = new NotesAgentSettingsDialog; QPointer<NotesAgentSettingsDialog> dialog = new NotesAgentSettingsDialog;
if (windowId) { if (windowId) {
#ifndef Q_OS_WIN
KWindowSystem::setMainWindow(dialog, windowId); KWindowSystem::setMainWindow(dialog, windowId);
#else
KWindowSystem::setMainWindow(dialog, (HWND)windowId);
#endif
} }
if (dialog->exec()) { if (dialog->exec()) {
mNotesManager->load(); mNotesManager->load();
......
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