[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/base/PolicyKit-kde/manager
From: Daniel Nicoletti <dantti85-kde () yahoo ! com ! br>
Date: 2009-01-20 13:17:02
Message-ID: 1232457422.050968.8031.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 914105 by dantti:
Set the AuthDialog modal to darken the parent window
M +2 -8 AuthDialog.cpp
M +2 -1 policykitkde.cpp
--- trunk/extragear/base/PolicyKit-kde/manager/AuthDialog.cpp #914104:914105
@@ -30,18 +30,12 @@
#include <KToolInvocation>
#include <KUser>
-/*
- * Constructs a AuthDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
AuthDialog::AuthDialog(PolKitPolicyFileEntry *entry, uint pid)
: KDialog(0, Qt::Dialog | Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint)
{
setupUi(mainWidget());
-
+ // the dialog needs to be modal to darken the parent window
+ setModal(true);
setButtons(Ok | Cancel | Details);
kDebug() << "Getting action message...";
--- trunk/extragear/base/PolicyKit-kde/manager/policykitkde.cpp #914104:914105
@@ -172,8 +172,9 @@
connect(dialog, SIGNAL(adminUserSelected(QString)), SLOT(userSelected(QString)));
if (wid != 0) {
KWindowSystem::setMainWindow(dialog, wid);
- } else
+ } else {
updateUserTimestamp(); // make it get focus unconditionally :-/
+ }
parent_wid = wid;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic