diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-17 22:13:24 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-17 22:13:24 +0100 |
commit | fcc90586d1d1631c31b2799fdaf410af1b073cf0 (patch) | |
tree | 589d81d377b087ac607b4a79a2eea065ee9c5893 /src/gui/window.cpp | |
parent | 1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb (diff) | |
download | mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.gz mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.bz2 mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.xz mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.zip |
Reintroduced window name property
Still used in the eAthena client and it seems saner to me to have it.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index 9dc70189..c40f8a25 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -129,7 +129,7 @@ Window::~Window() { logger->log("UNLOAD: Window::~Window(\"%s\")", getCaption().c_str()); - const std::string &name = mConfigName; + const std::string &name = mWindowName; if (!name.empty()) { // Saving X, Y and Width and Height for resizables in the config @@ -466,9 +466,10 @@ void Window::mouseDragged(gcn::MouseEvent &event) } } -void Window::loadWindowState(const std::string &name) +void Window::loadWindowState() { - mConfigName = name; + const std::string &name = mWindowName; + assert(!name.empty()); setPosition((int) config.getValue(name + "WinX", mDefaultX), (int) config.getValue(name + "WinY", mDefaultY)); |