From 9e7105682e11210df656346bf42c66b2d3e6b60e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Oct 2013 13:37:24 +0300 Subject: move virtual member calls from updaterwindow constructor into postInit. --- src/gui/windows/updaterwindow.cpp | 4 ++++ src/gui/windows/updaterwindow.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui/windows') 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 */ -- cgit v1.2.3-70-g09d2