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 #include -/* - * 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;