This commit is contained in:
RetroPooh 2017-01-13 18:20:19 +03:00
parent 8ae9eff928
commit cef62e30fc
2 changed files with 5 additions and 4 deletions

View File

@ -234,17 +234,16 @@ void ChatLobbyDialog::participantsTreeWidgetCustomPopupMenu(QPoint)
contextMnu.addAction(showinpeopleAct); contextMnu.addAction(showinpeopleAct);
distantChatAct->setEnabled(false); distantChatAct->setEnabled(false);
sendMessageAct->setEnabled(false); sendMessageAct->setEnabled(selectedItems.count()==1);
muteAct->setCheckable(true); muteAct->setCheckable(true);
muteAct->setEnabled(false); muteAct->setEnabled(false);
muteAct->setChecked(false); muteAct->setChecked(false);
votePositiveAct->setEnabled(false); votePositiveAct->setEnabled(false);
voteNeutralAct->setEnabled(false); voteNeutralAct->setEnabled(false);
banAct->setEnabled(false); banAct->setEnabled(false);
showinpeopleAct->setEnabled(selectedItems.count()==1);
if(selectedItems.count()==1) if(selectedItems.count()==1)
{ {
sendMessageAct->setEnabled(true);
showinpeopleAct->setEnabled(true);
RsGxsId nickName; RsGxsId nickName;
rsMsgs->getIdentityForChatLobby(lobbyId, nickName); rsMsgs->getIdentityForChatLobby(lobbyId, nickName);
if(RsGxsId(selectedItems.at(0)->text(COLUMN_ID).toStdString())!=nickName) if(RsGxsId(selectedItems.at(0)->text(COLUMN_ID).toStdString())!=nickName)

View File

@ -81,7 +81,9 @@ protected slots:
void distantChatParticipant(); void distantChatParticipant();
void participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, int column); void participantsTreeWidgetDoubleClicked(QTreeWidgetItem *item, int column);
void sendMessage(); void sendMessage();
void voteParticipant(int vote); void voteParticipantPositive();
void voteParticipantNeutral();
void voteParticipantNegative();
private: private:
void updateParticipantsList(); void updateParticipantsList();