Fixed sort friends by state in PeersDialog

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3471 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-09-11 20:52:37 +00:00
parent 3759f8de6f
commit d05d723af1

View File

@ -820,7 +820,7 @@ void PeersDialog::insertPeers()
break;
}
gpg_item -> setData(COLUMN_STATE, ROLE_SORT, BuildStateSortString(true, gpg_item->text(COLUMN_NAME), PEER_STATE_INACTIVE));
gpg_item -> setData(COLUMN_STATE, ROLE_SORT, BuildStateSortString(true, gpg_item->text(COLUMN_NAME), bestPeerState));
} else if (gpg_online) {
gpg_item->setHidden(bHideUnconnected);
gpgIcon = QIcon(IMAGE_AVAILABLE);