2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

merged with master fix of report spam button

This commit is contained in:
John Preston
2015-09-13 14:12:38 +03:00
29 changed files with 2525 additions and 80 deletions

View File

@@ -820,7 +820,7 @@ void OverviewInner::onDragExec() {
}
drag->setMimeData(mimeData);
drag->exec(Qt::CopyAction);
dragActionUpdate(QCursor::pos());
if (App::main()) App::main()->updateAfterDrag();
return;
} else {
HistoryItem *pressedLnkItem = App::pressedLinkItem(), *pressedItem = App::pressedItem();
@@ -847,7 +847,7 @@ void OverviewInner::onDragExec() {
drag->setMimeData(mimeData);
drag->exec(Qt::CopyAction);
dragActionUpdate(QCursor::pos());
if (App::main()) App::main()->updateAfterDrag();
return;
}
}
@@ -2855,6 +2855,10 @@ void OverviewWidget::updateScrollColors() {
_scroll.updateColors(App::historyScrollBarColor(), App::historyScrollBgColor(), App::historyScrollBarOverColor(), App::historyScrollBgOverColor());
}
void OverviewWidget::updateAfterDrag() {
_inner.dragActionUpdate(QCursor::pos());
}
OverviewWidget::~OverviewWidget() {
onClearSelected();
updateTopBarSelection();