summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 13:37:24 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:25 +0300
commit9e7105682e11210df656346bf42c66b2d3e6b60e (patch)
tree5216296d2dab26e00d1149aea6bf0d4ac59d5d0f /src/gui/windows
parentb54549e4635fcbea922d42f2d5454b0f84ebe383 (diff)
downloadmv-9e7105682e11210df656346bf42c66b2d3e6b60e.tar.gz
mv-9e7105682e11210df656346bf42c66b2d3e6b60e.tar.bz2
mv-9e7105682e11210df656346bf42c66b2d3e6b60e.tar.xz
mv-9e7105682e11210df656346bf42c66b2d3e6b60e.zip
move virtual member calls from updaterwindow constructor into postInit.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/updaterwindow.cpp4
-rw-r--r--src/gui/windows/updaterwindow.h2
2 files changed, 6 insertions, 0 deletions
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
*/