From 1f78565b3d26991fd8a5007da8a5446cecf5bd52 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Mon, 25 Apr 2016 22:08:02 +0200 Subject: Another label comaprison <-> YItem commparison issue --- lib/ManaTools/Module/Users.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/ManaTools') 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)} ); -- cgit v1.2.1