aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 01036055..0870c632 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -736,7 +736,7 @@ sub update_sources {
Gtk2::Button->new(N("Cancel")),
clicked => sub {
$cancel = 1;
- $w->destroy;
+ $w and $w->destroy;
},
),
),