You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
polkit-kde/polkit-kde-1_root-password....

15 lines
467 B

Index: agent/policykitlistener.cpp
===================================================================
--- agent/policykitlistener.cpp (revision 1159031)
+++ agent/policykitlistener.cpp (working copy)
@@ -158,7 +158,8 @@
kDebug() << "Request: " << request;
if (m_dialog) {
- m_dialog->setRequest(request, echo);
+ m_dialog->setRequest(request, m_selectedUser &&
+ m_selectedUser->toString() == "unix-user:root");
}
}