2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

fixed two crashes, enabled not qt tray icon in pantheon env

This commit is contained in:
John Preston
2015-07-24 10:37:17 +02:00
parent f0c580db2d
commit 5fe1b7b51f
3 changed files with 4 additions and 2 deletions

View File

@@ -1029,6 +1029,8 @@ QString HistoryList::getSelectedText() const {
QMap<int32, QString> texts;
for (SelectedItems::const_iterator i = sel.cbegin(), e = sel.cend(); i != e; ++i) {
HistoryItem *item = i.key();
if (item->detached()) continue;
QString text, sel = item->selectedText(FullItemSel), time = item->date.toString(timeFormat);
int32 size = item->from()->name.size() + time.size() + sel.size();
text.reserve(size);