aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/AdminPanel/Module/DisplayManager.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AdminPanel/Module/DisplayManager.pm b/lib/AdminPanel/Module/DisplayManager.pm
index 1292108..1c1c8b3 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;
}