summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-13 02:25:58 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-13 02:25:58 +0000
commitd32386353d28093a5d03ad99f161f8133d73e056 (patch)
tree7d0fa519d613a79b611b938c0929260625fff5c3 /src/gui/setup.cpp
parent75b19e771c527e8444aae70543b2b617dae2e892 (diff)
downloadmana-d32386353d28093a5d03ad99f161f8133d73e056.tar.gz
mana-d32386353d28093a5d03ad99f161f8133d73e056.tar.bz2
mana-d32386353d28093a5d03ad99f161f8133d73e056.tar.xz
mana-d32386353d28093a5d03ad99f161f8133d73e056.zip
Some header order, namespace and lib fixes to improve MSVC support.
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r--src/gui/setup.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index c8b677db..07ade6d3 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -64,10 +64,12 @@ Setup::~Setup() {
}
void Setup::toggleVisible(bool toggle) {
- if(visible == false && toggle == true)
- visible == true;
- else
- if(visible == true && toggle == false) visible == false;
+ if (!visible && toggle) {
+ visible = true;
+ }
+ else if (visible && !toggle) {
+ visible = false;
+ }
setupDialog->setVisible(visible);
}