summaryrefslogtreecommitdiff
path: root/src/pincodemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-08 01:43:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-08 01:43:04 +0300
commit5d190c3ae47aef32c1f1fe48f36dd27cec721cf3 (patch)
treee1788d79f031ff8196bd9de084cb95771770518d /src/pincodemanager.cpp
parent676c5e978cbb312fbf4df8ec396c0f8b08944a96 (diff)
downloadmanaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.gz
manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.bz2
manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.tar.xz
manaverse-5d190c3ae47aef32c1f1fe48f36dd27cec721cf3.zip
Focus previous window after pin code accepted by server.
Diffstat (limited to 'src/pincodemanager.cpp')
-rw-r--r--src/pincodemanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pincodemanager.cpp b/src/pincodemanager.cpp
index 541726f9c..6b254ba52 100644
--- a/src/pincodemanager.cpp
+++ b/src/pincodemanager.cpp
@@ -20,6 +20,8 @@
#include "pincodemanager.h"
+#include "client.h"
+
#include "gui/windows/okdialog.h"
#include "gui/windows/pincodedialog.h"
@@ -151,6 +153,8 @@ void PincodeManager::sendPincode(const std::string &pincode)
void PincodeManager::pinOk()
{
mState = PincodeState::None;
+ if (client)
+ client->focusWindow();
}
void PincodeManager::wrongPin()