mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix
This commit is contained in:
parent
8ae9eff928
commit
cef62e30fc
@ -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)
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user