summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp1
-rw-r--r--src/gui/windows/updaterwindow.cpp4
-rw-r--r--src/gui/windows/updaterwindow.h2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 59ce01f75..222322f22 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1362,6 +1362,7 @@ int Client::gameExec()
mOldUpdates,
mOptions.dataPath.empty(),
loginData.updateType);
+ mCurrentDialog->postInit();
}
BLOCK_END("Client::gameExec STATE_UPDATE")
break;
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 10b887132..37b392b43 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -213,6 +213,10 @@ UpdaterWindow::UpdaterWindow(const std::string &updateHost,
addKeyListener(this);
loadWindowState();
+}
+
+void UpdaterWindow::postInit()
+{
setVisible(true);
mCancelButton->requestFocus();
removeProtocol(mUpdateServerPath);
diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h
index b96616cbc..fca58b3f8 100644
--- a/src/gui/windows/updaterwindow.h
+++ b/src/gui/windows/updaterwindow.h
@@ -92,6 +92,8 @@ class UpdaterWindow final : public Window,
*/
~UpdaterWindow();
+ void postInit() override;
+
/**
* Set's progress bar status
*/