From 85eebe87172021e63267515c6a7964efccb6015c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 17:28:44 +0300 Subject: move virtual member calls from mpcdialog constuctor into postInit. --- src/gui/windows/npcdialog.cpp | 4 ++++ src/gui/windows/npcdialog.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/gui/windows') diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index ba8754482..e8caa0722 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -184,6 +184,10 @@ NpcDialog::NpcDialog(const int npcId) : loadWindowState(); instances.push_back(this); +} + +void NpcDialog::postInit() +{ setVisible(true); requestFocus(); enableVisibleSound(true); diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h index f48e782d9..4e907e325 100644 --- a/src/gui/windows/npcdialog.h +++ b/src/gui/windows/npcdialog.h @@ -72,6 +72,8 @@ class NpcDialog final : public Window, ~NpcDialog(); + void postInit(); + /** * Called when receiving actions from the widgets. */ -- cgit v1.2.3-70-g09d2