2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +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

@@ -772,6 +772,9 @@ void HistoryInner::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;
@@ -806,6 +809,9 @@ void HistoryInner::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;