summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-30 07:51:11 -0700
committerIra Rice <irarice@gmail.com>2009-01-30 07:51:11 -0700
commita49b60fc0f9edfba8ec457ce06cf75cc13d4c71b (patch)
tree477e7e896aef2c01645df6bacbd0b5521bcb47b6 /src/gui/minimap.cpp
parent5a217925e3088bfbb187d274ced159754e2397c2 (diff)
downloadmana-a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b.tar.gz
mana-a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b.tar.bz2
mana-a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b.tar.xz
mana-a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b.zip
Fixed the last freestanding minimap bug. Now minimaps behave perfectly
even when there's already a saved window configuration. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index d68faa56..d1d3af46 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -44,6 +44,8 @@ Minimap::Minimap():
mShow = config.getValue(getWindowName() + "Visible", true);
setDefaultSize(5, 25, 100, 100);
setResizable(true);
+
+ loadWindowState();
}
Minimap::~Minimap()
@@ -93,7 +95,6 @@ void Minimap::setMapImage(Image *img)
setDefaultSize(getX(), getY(), getWidth(), getHeight());
resetToDefaultSize();
- loadWindowState();
setVisible(mShow);
}
else