From dd3d92edb6a3467a2b5947613de175b2e75a846c Mon Sep 17 00:00:00 2001 From: Gres Date: Tue, 29 Sep 2015 18:11:00 +0300 Subject: [PATCH] Activate selection and result dialogs when showing. --- ResultDialog.cpp | 1 + SelectionDialog.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ResultDialog.cpp b/ResultDialog.cpp index caeb1bc..e263a0c 100644 --- a/ResultDialog.cpp +++ b/ResultDialog.cpp @@ -57,4 +57,5 @@ void ResultDialog::showResult (ProcessingItem item) { QPoint newPos (screenRect.width () - width (), screenRect.height () - height ()); move (newPos); } + activateWindow (); } diff --git a/SelectionDialog.cpp b/SelectionDialog.cpp index 5c0b96d..96e1d4b 100644 --- a/SelectionDialog.cpp +++ b/SelectionDialog.cpp @@ -136,5 +136,5 @@ void SelectionDialog::setPixmap (QPixmap pixmap, const QRect &showGeometry) { this->setGeometry (showGeometry); show (); - setFocus (); + activateWindow (); }