mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
Disable sticker button when sending is blocked
This commit is contained in:
parent
e52f1282ec
commit
9c877d3cdd
@ -439,6 +439,7 @@ void ChatWidget::blockSending(QString msg)
|
||||
#ifndef RS_ASYNC_CHAT
|
||||
sendingBlocked = true;
|
||||
ui->sendButton->setEnabled(false);
|
||||
ui->stickerButton->setEnabled(false);
|
||||
#endif
|
||||
ui->sendButton->setToolTip(msg);
|
||||
}
|
||||
@ -446,6 +447,7 @@ void ChatWidget::blockSending(QString msg)
|
||||
void ChatWidget::unblockSending()
|
||||
{
|
||||
sendingBlocked = false;
|
||||
ui->stickerButton->setEnabled(true);
|
||||
updateLenOfChatTextEdit();
|
||||
}
|
||||
|
||||
@ -1559,6 +1561,7 @@ void ChatWidget::stickerWidget()
|
||||
|
||||
void ChatWidget::sendSticker()
|
||||
{
|
||||
if(sendingBlocked) return;
|
||||
QString sticker = qobject_cast<QPushButton*>(sender())->statusTip();
|
||||
QString encodedImage;
|
||||
if (RsHtml::makeEmbeddedImage(sticker, encodedImage, 640*480, maxMessageSize() - 200)) { //-200 for the html stuff
|
||||
|
Loading…
Reference in New Issue
Block a user