mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Activate window on dropEvent.
This commit is contained in:
@@ -565,8 +565,14 @@ HistoryWidget::HistoryWidget(QWidget *parent, not_null<Window::Controller*> cont
|
||||
|
||||
_topShadow->hide();
|
||||
|
||||
_attachDragDocument->setDroppedCallback([this](const QMimeData *data) { confirmSendingFiles(data, CompressConfirm::No); });
|
||||
_attachDragPhoto->setDroppedCallback([this](const QMimeData *data) { confirmSendingFiles(data, CompressConfirm::Yes); });
|
||||
_attachDragDocument->setDroppedCallback([this](const QMimeData *data) {
|
||||
confirmSendingFiles(data, CompressConfirm::No);
|
||||
this->controller()->window()->activateWindow();
|
||||
});
|
||||
_attachDragPhoto->setDroppedCallback([this](const QMimeData *data) {
|
||||
confirmSendingFiles(data, CompressConfirm::Yes);
|
||||
this->controller()->window()->activateWindow();
|
||||
});
|
||||
|
||||
connect(&_updateEditTimeLeftDisplay, SIGNAL(timeout()), this, SLOT(updateField()));
|
||||
|
||||
|
Reference in New Issue
Block a user