2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Invite link block in the new profile implementation done.

Fixed ClickHandler state when host is destroyed and after drag-n-drop.
This commit is contained in:
John Preston
2016-06-01 19:40:51 +03:00
parent 66a8aa86e1
commit 15d6a1aacf
9 changed files with 137 additions and 10 deletions

View File

@@ -615,6 +615,9 @@ void OverviewInner::onDragExec() {
mimeData->setData(qsl("application/x-td-forward-selected"), "1");
}
drag->setMimeData(mimeData);
// We don't receive mouseReleaseEvent when drag is finished.
ClickHandler::unpressed();
drag->exec(Qt::CopyAction);
if (App::main()) App::main()->updateAfterDrag();
return;
@@ -643,6 +646,9 @@ void OverviewInner::onDragExec() {
}
drag->setMimeData(mimeData);
// We don't receive mouseReleaseEvent when drag is finished.
ClickHandler::unpressed();
drag->exec(Qt::CopyAction);
if (App::main()) App::main()->updateAfterDrag();
return;