summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-06-01 08:11:08 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-06-01 08:11:08 +0000
commitf1d8b860f050a466bf67db720f62926b286ed249 (patch)
treeb3d33b2ca05a5059f2808db1988bef6d11aec003 /perl-install/interactive
parent6972f7d8826f69437d0e8a502f84f401621872bc (diff)
downloaddrakx-f1d8b860f050a466bf67db720f62926b286ed249.tar
drakx-f1d8b860f050a466bf67db720f62926b286ed249.tar.gz
drakx-f1d8b860f050a466bf67db720f62926b286ed249.tar.bz2
drakx-f1d8b860f050a466bf67db720f62926b286ed249.tar.xz
drakx-f1d8b860f050a466bf67db720f62926b286ed249.zip
(ask_fromW) simplify
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/gtk.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index a911f1f32..53813709e 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -598,12 +598,11 @@ sub ask_fromW {
$set = sub {
my $s = may_apply($e->{format}, $_[0]);
- return if !($s ne $w->get_text && $_[0] ne $w->get_text);
if ($model) {
$model->set($w->get_active_iter, 0 => may_apply($e->{format}, $s));
#$w->set_active($model->{indexes}{$s});
} else {
- $w->set_text($s);
+ $w->set_text($s) if $s ne $w->get_text && $_[0] ne $w->get_text;
}
};
$get = sub {