summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-10 09:35:26 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-10 09:35:26 -0600
commit3aa9e681e466b1596a99b0361277975476790c3f (patch)
treea3b2af3981cdd0b92b32f12875c7733805c1accb /src/gui/window.cpp
parent171198999b4290f3e2adadd019c8d914212ecf47 (diff)
downloadmana-client-3aa9e681e466b1596a99b0361277975476790c3f.tar.gz
mana-client-3aa9e681e466b1596a99b0361277975476790c3f.tar.bz2
mana-client-3aa9e681e466b1596a99b0361277975476790c3f.tar.xz
mana-client-3aa9e681e466b1596a99b0361277975476790c3f.zip
Allow NPCList dialog to use it's old location
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 48229ec8..8eaaf31d 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -490,9 +490,9 @@ void Window::setDefaultSize(int defaultX, int defaultY,
mDefaultHeight = defaultHeight;
}
-void Window::resetToDefaultSize()
+void Window::resetToDefaultSize(bool changePosition)
{
- setPosition(mDefaultX, mDefaultY);
+ if (changePosition) setPosition(mDefaultX, mDefaultY);
setSize(mDefaultWidth, mDefaultHeight);
}