From 3e0bce53e2b3387801f3e0484f01a64d767115da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 7 Aug 2017 02:23:04 +0300 Subject: Allow open debug window before connecting to game. --- src/gui/windows/debugwindow.cpp | 4 ++-- src/gui/windows/debugwindow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/debugwindow.cpp b/src/gui/windows/debugwindow.cpp index 8b4144b98..e10ad1b2c 100644 --- a/src/gui/windows/debugwindow.cpp +++ b/src/gui/windows/debugwindow.cpp @@ -38,7 +38,7 @@ DebugWindow *debugWindow = nullptr; -DebugWindow::DebugWindow() : +DebugWindow::DebugWindow(const std::string &name) : // TRANSLATORS: debug window name Window(_("Debug"), Modal_false, nullptr, "debug.xml"), mTabs(CREATEWIDGETR(TabbedArea, this)), @@ -46,7 +46,7 @@ DebugWindow::DebugWindow() : mTargetWidget(new TargetDebugTab(this)), mNetWidget(new NetDebugTab(this)) { - setWindowName("Debug"); + setWindowName(name); if (setupWindow != nullptr) setupWindow->registerWindowForReset(this); diff --git a/src/gui/windows/debugwindow.h b/src/gui/windows/debugwindow.h index f39386ec8..3e13352fc 100644 --- a/src/gui/windows/debugwindow.h +++ b/src/gui/windows/debugwindow.h @@ -41,7 +41,7 @@ class DebugWindow final : public Window /** * Constructor. */ - DebugWindow(); + DebugWindow(const std::string &name); A_DELETE_COPY(DebugWindow) -- cgit v1.2.3-60-g2f50