Commit 0701f84a authored by Jonathan Thomas's avatar Jonathan Thomas
Browse files

Bring the auth dialog to the front when it is shown. Otherwise it pops up...

Bring the auth dialog to the front when it is shown. Otherwise it pops up behind the app requesting it and the user never sees it.
parent 82e299c7
......@@ -22,6 +22,7 @@
#include "AuthDialog.h"
#include <KDebug>
#include <KWindowSystem>
#include <PolkitQt1/Agent/Listener>
#include <PolkitQt1/Agent/Session>
......@@ -100,6 +101,7 @@ void PolicyKitListener::initiateAuthentication(const QString &actionId,
kDebug() << "WinId of the dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
m_dialog.data()->setOptions();
m_dialog.data()->show();
KWindowSystem::forceActiveWindow(m_dialog.data()->winId());
kDebug() << "WinId of the shown dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
m_numTries = 0;
......
Supports Markdown
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