summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/gtk.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive/gtk.pm')
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index d34e9a5f4..88a102b41 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -283,7 +283,7 @@ sub create_treeview_tree {
});
$tree->signal_connect(button_press_event => sub {
$selected_via_click = 1;
- &$double_click if !$tree_model->iter_has_child($curr) && $double_click;
+ &$double_click if $curr && !$tree_model->iter_has_child($curr) && $double_click;
});
$tree, sub {