summaryrefslogtreecommitdiff
path: root/src/gui/setup.cpp
diff options
context:
space:
mode:
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);
}