2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Text copy from HistoryItem/HistoryMedia/combined is done and tested.

Moved text module to ui/text/ and split it to several modules.
Xcode build currently broken.
This commit is contained in:
John Preston
2016-04-14 14:00:23 +03:00
parent c4a7d48d96
commit 68a9a0a12e
22 changed files with 2781 additions and 2565 deletions

View File

@@ -1066,7 +1066,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
}
}
QString contextMenuText = item->selectedText(FullSelection);
if (!contextMenuText.isEmpty() && (!msg || !msg->getMedia() || (msg->getMedia()->type() != MediaTypeSticker && msg->getMedia()->type() != MediaTypeGif))) {
if (!contextMenuText.isEmpty() && msg && !msg->getMedia()) {
_menu->addAction(lang(lng_context_copy_text), this, SLOT(copyContextText()))->setEnabled(true);
}
}