summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Xconfig/monitor.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/Xconfig/monitor.pm b/perl-install/Xconfig/monitor.pm
index 8ca3ba935..429b65f50 100644
--- a/perl-install/Xconfig/monitor.pm
+++ b/perl-install/Xconfig/monitor.pm
@@ -71,7 +71,8 @@ sub choose {
my $monitors = monitors();
- configure_automatic($monitor, $monitors) and $auto and return 1;
+ my $ok = configure_automatic($monitor, $monitors);
+ return $ok if $auto;
my %h_monitors = map {; "$_->{VendorName}|$_->{ModelName}" => $_ } @$monitors;