mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 09:05:34 -05:00
gui: disable quote option if no text is selected in chat
This commit is contained in:
parent
5925aa06fe
commit
b950e12bcf
@ -1096,6 +1096,10 @@ void ChatWidget::contextMenuTextBrowser(QPoint point)
|
||||
contextMnu->addSeparator();
|
||||
contextMnu->addAction(ui->actionClearChatHistory);
|
||||
contextMnu->addAction(ui->actionQuote);
|
||||
if (ui->textBrowser->textCursor().selection().toPlainText().length() == 0)
|
||||
ui->actionQuote->setEnabled(false);
|
||||
else
|
||||
ui->actionQuote->setEnabled(true);
|
||||
contextMnu->addAction(ui->actionDropPlacemark);
|
||||
|
||||
if(ui->textBrowser->checkImage(point))
|
||||
|
Loading…
x
Reference in New Issue
Block a user