From a72d53ae1bb49086f4dfb57ae3e01535dd599533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 17 Aug 2016 17:54:43 +0200 Subject: [PATCH] qrexec-policy: fix confirmation dialog call --- qrexec/qrexec-policy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrexec/qrexec-policy b/qrexec/qrexec-policy index 64e0b92..7d0bf1b 100755 --- a/qrexec/qrexec-policy +++ b/qrexec/qrexec-policy @@ -32,7 +32,7 @@ def prepare_app(): def ask(text, title="Question", yestoall=False): - prepare_app() + qtapp = prepare_app() buttons = QMessageBox.Yes | QMessageBox.No if yestoall: @@ -176,7 +176,7 @@ def confirm_execution(domain, target, service_name): text += " operation on the domain \"" + target + "\"?
" text += " \"Yes to All\" option will automatically allow this " \ "operation in the future." - return qubes.guihelpers.ask(text, yestoall=True) + return ask(text, yestoall=True) def add_always_allow(domain, target, service_name, options):