From 12f1786f00d9ab7947a46d8ef562d65b236b440c Mon Sep 17 00:00:00 2001 From: "Marcel W. Wysocki" Date: Mon, 1 Aug 2005 22:16:42 +0000 Subject: making setup dialog quitting too when clicking on Setup button while opened --- src/gui/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/status.cpp b/src/gui/status.cpp index e507c395..12312490 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -198,7 +198,7 @@ void StatusWindow::action(const std::string& eventId) } if (eventId == "Setup") { // Show / Hide the inventory dialog - setupWindow->setVisible(true); + setupWindow->setVisible(!setupWindow->isVisible()); } if (eventId == "Equipment") { // Show / Hide the inventory dialog -- cgit v1.2.3-70-g09d2