Changeset 6368 for trunk/qt-gui
- Timestamp:
- 07/01/08 04:26:06 (5 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/mainwin.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/mainwin.cpp
r6367 r6368 1515 1515 } 1516 1516 } 1517 else if (u->GetInGroup(m_nGroupType, m_nCurrentGroup)) 1517 else if ((m_nGroupType == GROUPS_USER && m_nCurrentGroup == 0) || 1518 u->GetInGroup(m_nGroupType, m_nCurrentGroup)) 1518 1519 { 1519 1520 // Update this user if they are in the current group … … 1660 1661 { 1661 1662 1662 if (u->GetInGroup(m_nGroupType, m_nCurrentGroup) && show_user(u) ) 1663 (void) new CUserViewItem(u, userView); 1663 if ((m_nGroupType == GROUPS_USER && m_nCurrentGroup == 0) || 1664 u->GetInGroup(m_nGroupType, m_nCurrentGroup)) 1665 if (show_user(u)) 1666 (void) new CUserViewItem(u, userView); 1664 1667 } 1665 1668 // as we intercept the user's addition, we set it our default codec … … 1820 1823 FOR_EACH_USER_START(LOCK_R) 1821 1824 { 1822 // Only show users on the current group and not on the ignore list 1823 if (!doGroupView && (!pUser->GetInGroup(m_nGroupType, m_nCurrentGroup) || 1824 (pUser->IgnoreList() && m_nGroupType != GROUPS_SYSTEM && m_nCurrentGroup != GROUP_IGNORE_LIST) )) 1825 if (pUser->IgnoreList() && m_nGroupType != GROUPS_SYSTEM && m_nCurrentGroup != GROUP_IGNORE_LIST) 1825 1826 FOR_EACH_USER_CONTINUE 1826 1827 … … 1839 1840 } 1840 1841 else 1841 // Add the user to the list 1842 (void) new CUserViewItem(pUser, userView); 1842 { 1843 if ((m_nGroupType == GROUPS_USER && m_nCurrentGroup == 0) || 1844 pUser->GetInGroup(m_nGroupType, m_nCurrentGroup)) 1845 // Add the user to the list 1846 (void) new CUserViewItem(pUser, userView); 1847 } 1843 1848 } 1844 1849 FOR_EACH_USER_END
