diff options
| author | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-09-16 00:40:49 +0200 | 
|---|---|---|
| committer | Matteo Pasotti <matteo.pasotti@gmail.com> | 2014-09-16 00:40:49 +0200 | 
| commit | 4983582117f0aa97021a4119d7413490d94477e7 (patch) | |
| tree | 08dd855afd28394b7d59e5c7af1f4fe5c77eff98 /lib | |
| parent | 54e27181f2f1fa1916a5f7b61829e32228f97560 (diff) | |
| download | manatools-4983582117f0aa97021a4119d7413490d94477e7.tar manatools-4983582117f0aa97021a4119d7413490d94477e7.tar.gz manatools-4983582117f0aa97021a4119d7413490d94477e7.tar.bz2 manatools-4983582117f0aa97021a4119d7413490d94477e7.tar.xz manatools-4983582117f0aa97021a4119d7413490d94477e7.zip | |
drop extra chars from the label of the selected dm
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/AdminPanel/Module/DisplayManager.pm | 4 | 
1 files changed, 3 insertions, 1 deletions
| 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;              } | 
