summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-31 11:14:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-31 11:14:31 +0000
commit44db417f8bb389b0e35bd3699f17aafde9057627 (patch)
tree20d5edc453f01c0b8bd02f6f3d3319d2b019ea46 /bin
parent262034b4befeb2c7b1035f500af81f616e95276e (diff)
downloaddrakguard-44db417f8bb389b0e35bd3699f17aafde9057627.tar
drakguard-44db417f8bb389b0e35bd3699f17aafde9057627.tar.gz
drakguard-44db417f8bb389b0e35bd3699f17aafde9057627.tar.bz2
drakguard-44db417f8bb389b0e35bd3699f17aafde9057627.tar.xz
drakguard-44db417f8bb389b0e35bd3699f17aafde9057627.zip
really quit gui when needed (like when packages instalaltion is cancelled, #39557)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 879643f..98dc6f7 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -215,7 +215,10 @@ sub list_remove_selected {
list_remove_addr($list, list_get_selected($list));
}
-sub quit_gui() { Gtk2->main_quit }
+sub quit_gui {
+ my ($code) = @_;
+ $w->exit($code);
+}
sub load() {
my $guardian = read_dansguardian();