summaryrefslogtreecommitdiff
path: root/src/gui/windows/debugwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-07 02:23:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-07 02:23:04 +0300
commit3e0bce53e2b3387801f3e0484f01a64d767115da (patch)
tree0601c1a09f7452fb41702249e70cbe0f035ea7df /src/gui/windows/debugwindow.cpp
parentc35ae089aaa484b72c787625d2dd9a1481fa15b6 (diff)
downloadplus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.gz
plus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.bz2
plus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.xz
plus-3e0bce53e2b3387801f3e0484f01a64d767115da.zip
Allow open debug window before connecting to game.
Diffstat (limited to 'src/gui/windows/debugwindow.cpp')
-rw-r--r--src/gui/windows/debugwindow.cpp4
1 files changed, 2 insertions, 2 deletions
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);