diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-30 07:51:11 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-30 07:51:11 -0700 |
commit | a49b60fc0f9edfba8ec457ce06cf75cc13d4c71b (patch) | |
tree | 477e7e896aef2c01645df6bacbd0b5521bcb47b6 /src/gui/minimap.cpp | |
parent | 5a217925e3088bfbb187d274ced159754e2397c2 (diff) | |
download | mana-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.cpp | 3 |
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 |