mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Show "Add group" action in context menu of FriendList without groups.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7273 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
23f6c405c8
commit
50fcd401b1
@ -459,11 +459,10 @@ void FriendList::peerTreeWidgetCostumPopupMenu()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QMenu *groupsMenu = contextMnu.addMenu(QIcon(IMAGE_GROUP16), tr("Groups"));
|
||||||
|
groupsMenu->addAction(QIcon(IMAGE_EXPAND), tr("Create new group"), this, SLOT(createNewGroup()));
|
||||||
|
|
||||||
if (addToGroupMenu || moveToGroupMenu || foundGroup) {
|
if (addToGroupMenu || moveToGroupMenu || foundGroup) {
|
||||||
QMenu *groupsMenu = contextMnu.addMenu(QIcon(IMAGE_GROUP16), tr("Groups"));
|
|
||||||
|
|
||||||
groupsMenu->addAction(QIcon(IMAGE_EXPAND), tr("Create new group"), this, SLOT(createNewGroup()));
|
|
||||||
|
|
||||||
if (addToGroupMenu) {
|
if (addToGroupMenu) {
|
||||||
groupsMenu->addMenu(addToGroupMenu);
|
groupsMenu->addMenu(addToGroupMenu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user