From 75c1858178cb1aff0419b8619193bff86ec2a940 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 3 Sep 2013 21:17:36 +0200
Subject: [PATCH] make adhoc warning dialog with a warning icon. Fixes #7239

---
 src/adhoc_commands.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/adhoc_commands.py b/src/adhoc_commands.py
index 7323b49024..376c8c68c3 100644
--- a/src/adhoc_commands.py
+++ b/src/adhoc_commands.py
@@ -321,8 +321,8 @@ class CommandWindow:
             dialog.destroy()
             cb()
 
-        dialog = dialogs.HigDialog(self.window, gtk.DIALOG_DESTROY_WITH_PARENT \
-            | gtk.DIALOG_MODAL, gtk.BUTTONS_YES_NO, _('Cancel confirmation'),
+        dialog = dialogs.HigDialog(self.window, gtk.MESSAGE_WARNING,
+            gtk.BUTTONS_YES_NO, _('Cancel confirmation'),
             _('You are in process of executing command. Do you really want to '
             'cancel it?'), on_response_yes=on_yes)
         dialog.popup()
-- 
GitLab