~ubuntu-branches/ubuntu/oneiric/polkit-qt-1/oneiric

« back to all changes in this revision

Viewing changes to gui/polkitqt1-gui-action.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-11-07 01:18:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101107011828-qf5lzf950ih0l250
Tags: 0.98.1~git20101107-0ubuntu1
* New upstream snapshot:
  - Drop kubuntu_01_fix_glib_ftbfs.diff, accepted upstream
  - Bump build-depend versions on polkit to >= 0.98

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
bool Action::Private::computePkResult()
223
223
{
224
224
    Authority::Result old_result;
225
 
    UnixProcessSubject *subject;
226
 
 
227
 
    subject = new UnixProcessSubject(parent->targetPID());
 
225
    UnixProcessSubject subject(parent->targetPID());
228
226
 
229
227
    old_result = pkResult;
230
228
    pkResult = Authority::Unknown;
231
229
 
232
230
    pkResult = Authority::instance()->checkAuthorizationSync(actionId, subject, Authority::None);
233
231
 
234
 
    delete subject;
235
232
    return old_result != pkResult;
236
233
}
237
234