2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Activate window on dropEvent.

This commit is contained in:
John Preston
2017-12-18 20:25:24 +04:00
parent b1f33890d6
commit 3f751bfbb0
3 changed files with 11 additions and 2 deletions

View File

@@ -811,6 +811,7 @@ void DialogsWidget::dropEvent(QDropEvent *e) {
if (auto peer = _inner->updateFromParentDrag(mapToGlobal(e->pos()))) {
e->acceptProposedAction();
App::main()->onFilesOrForwardDrop(peer->id, e->mimeData());
controller()->window()->activateWindow();
}
}
}