From 6ef7c759ad3036578616b91e6ab835b50831fb78 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 7 Feb 2002 16:55:39 +0000 Subject: fix pixel stuff: don't restart wm on cancel --- perl-install/standalone/localedrake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/localedrake b/perl-install/standalone/localedrake index 2e26aa414..4f3ae4a32 100644 --- a/perl-install/standalone/localedrake +++ b/perl-install/standalone/localedrake @@ -16,13 +16,13 @@ $langs = '' if $>; if ($lang = any::selectLanguage($in, $lang, $langs)) { lang::write('', $lang, $file, $>); lang::write_langs('', $langs) if $langs; + if ($>) { + if (my $wm = any::running_window_manager()) { + $in->ask_warn('', _("Please relog into %s to activate the changes", ucfirst (lc $wm)), 1); + any::ask_window_manager_to_logout($wm); + } + } } -if ($>) { - if (my $wm = any::running_window_manager()) { - $in->ask_warn('', _("Please relog into %s to activate the changes", ucfirst (lc $wm)), 1); - any::ask_window_manager_to_logout($wm); - } -} $in->exit(0); -- cgit v1.2.1