From 4983582117f0aa97021a4119d7413490d94477e7 Mon Sep 17 00:00:00 2001 From: Matteo Pasotti Date: Tue, 16 Sep 2014 00:40:49 +0200 Subject: drop extra chars from the label of the selected dm --- lib/AdminPanel/Module/DisplayManager.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/AdminPanel/Module') diff --git a/lib/AdminPanel/Module/DisplayManager.pm b/lib/AdminPanel/Module/DisplayManager.pm index 12921089..1c1c8b3f 100644 --- a/lib/AdminPanel/Module/DisplayManager.pm +++ b/lib/AdminPanel/Module/DisplayManager.pm @@ -272,7 +272,9 @@ sub _manageProxyDialog { } ); }elsif ($widget == $okButton) { - addVarsInSh($self->conffile, { DISPLAYMANAGER => lc($rb_group->currentButton()->label()) } ); + my $current_choice = AdminPanel::Shared::trim($rb_group->currentButton()->label()); + $current_choice =~s/\&//g; + addVarsInSh($self->conffile, { DISPLAYMANAGER => lc($current_choice) } ); $self->ask_for_X_restart(); last; } -- cgit v1.2.1