aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-04-25 22:08:02 +0200
committerAngelo Naselli <anaselli@linux.it>2016-04-25 22:08:02 +0200
commit1f78565b3d26991fd8a5007da8a5446cecf5bd52 (patch)
treeaec89310d59641c3d81d1ea6ecf1de92f1b31148 /lib/ManaTools
parentd661853ed5a26afe7c20532dde044d7af15149a8 (diff)
downloadmanatools-1f78565b3d26991fd8a5007da8a5446cecf5bd52.tar
manatools-1f78565b3d26991fd8a5007da8a5446cecf5bd52.tar.gz
manatools-1f78565b3d26991fd8a5007da8a5446cecf5bd52.tar.bz2
manatools-1f78565b3d26991fd8a5007da8a5446cecf5bd52.tar.xz
manatools-1f78565b3d26991fd8a5007da8a5446cecf5bd52.zip
Another label comaprison <-> YItem commparison issue
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Module/Users.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ManaTools/Module/Users.pm b/lib/ManaTools/Module/Users.pm
index 19509b30..c73e2bd3 100644
--- a/lib/ManaTools/Module/Users.pm
+++ b/lib/ManaTools/Module/Users.pm
@@ -1354,14 +1354,14 @@ sub _refreshGroups {
sub _getUserInfo {
my $self = shift;
- my $label = $self->_skipShortcut($self->get_widget('tabs')->selectedItem()->label());
- if ($label ne $self->loc->N("Users") ) {
- return undef;
+ my $selectedTab = $self->get_widget('tabs')->selectedItem();
+ if ($selectedTab != $self->groups_users_tab()->{users}) {
+ return ();
}
my $item = $self->get_widget('table')->selectedItem();
if (! $item) {
- return undef;
+ return ();
}
my %userData;
@@ -2079,7 +2079,7 @@ sub _editUserDialog {
my $okButton = $factory->createPushButton($hbox, $self->loc->N("&Ok"));
my $userData = $self->_getUserInfo();
- # userData here should be tested because it could be undef
+ # userData here should be tested because it could be empty hash
# Useful entry point for the current edit user/group tab widget
$self->set_edit_tab_widget( %{$self->_userDataTabWidget($dlg, $tabs{replace_pnt}, $userData)} );