From 7bf7ae98fd0f2c7a6b23c529c5674696d4a3b570 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 24 May 2018 12:38:48 +0200 Subject: [PATCH] Decrease delay, after which window will be brought up To avoid working on not-existing window Signed-off-by: Szczepan Zalega --- src/ui/pindialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/pindialog.cpp b/src/ui/pindialog.cpp index 47521a58..990f6869 100644 --- a/src/ui/pindialog.cpp +++ b/src/ui/pindialog.cpp @@ -178,7 +178,7 @@ int PinDialog::exec() { return QDialog::Rejected; } - QTimer::singleShot(500, [this](){ + QTimer::singleShot(50, [this](){ ManageWindow::bringToFocus(this); }); return QDialog::exec();