summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-23 16:24:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-23 16:24:51 +0000
commitb8c2f69510e50362a56ad365d9f9232cf2f4f0c4 (patch)
treedd959f9de7c63a4a91d93bb0f0480767f8e48332 /perl-install
parent1e343b34fbb93da5fc73fc203ed65b4c775bbfb1 (diff)
downloaddrakx-b8c2f69510e50362a56ad365d9f9232cf2f4f0c4.tar
drakx-b8c2f69510e50362a56ad365d9f9232cf2f4f0c4.tar.gz
drakx-b8c2f69510e50362a56ad365d9f9232cf2f4f0c4.tar.bz2
drakx-b8c2f69510e50362a56ad365d9f9232cf2f4f0c4.tar.xz
drakx-b8c2f69510e50362a56ad365d9f9232cf2f4f0c4.zip
focus first widget when there is no ok
Diffstat (limited to 'perl-install')
-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 d8285dd60..0e4a6aa5f 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -627,7 +627,7 @@ sub ask_fromW {
my $widget_to_focus =
$common->{focus_cancel} ? $mainw->{cancel} :
- @widgets && ($common->{focus_first} || @widgets == 1 && member(ref $widgets[0]{focus_w}, "Gtk2::TreeView", "Gtk2::RadioButton")) ?
+ @widgets && ($common->{focus_first} || !$mainw->{ok} || @widgets == 1 && member(ref $widgets[0]{focus_w}, "Gtk2::TreeView", "Gtk2::RadioButton")) ?
$widgets[0]{focus_w} :
$mainw->{ok};
$widget_to_focus->grab_focus() if $widget_to_focus;