From cef62e30fc0f36796155d833ecfe2716b354d0b1 Mon Sep 17 00:00:00 2001 From: RetroPooh Date: Fri, 13 Jan 2017 18:20:19 +0300 Subject: [PATCH] fix --- retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp | 5 ++--- retroshare-gui/src/gui/chat/ChatLobbyDialog.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index 850c7930d..9eb72ab3f 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -234,17 +234,16 @@ void ChatLobbyDialog::participantsTreeWidgetCustomPopupMenu(QPoint) contextMnu.addAction(showinpeopleAct); distantChatAct->setEnabled(false); - sendMessageAct->setEnabled(false); + sendMessageAct->setEnabled(selectedItems.count()==1); muteAct->setCheckable(true); muteAct->setEnabled(false); muteAct->setChecked(false); votePositiveAct->setEnabled(false); voteNeutralAct->setEnabled(false); banAct->setEnabled(false); + showinpeopleAct->setEnabled(selectedItems.count()==1); if(selectedItems.count()==1) { - sendMessageAct->setEnabled(true); - showinpeopleAct->setEnabled(true); RsGxsId nickName; rsMsgs->getIdentityForChatLobby(lobbyId, nickName); if(RsGxsId(selectedItems.at(0)->text(COLUMN_ID).toStdString())!=nickName) diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.h b/retroshare-gui/src/gui/chat/ChatLobbyDialog.h index 94359802a..9ca5f87ab 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.h +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.h @@ -81,7 +81,9 @@ protected slots: void distantChatParticipant(); void participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, int column); void sendMessage(); - void voteParticipant(int vote); + void voteParticipantPositive(); + void voteParticipantNeutral(); + void voteParticipantNegative(); private: void updateParticipantsList();