summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-04 11:09:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-04 11:09:07 (GMT)
commitab8466e9908d3982d498b63197bb80ffb489f3c1 (patch)
tree3e1e820b83e3feb27d3fec0fd02e43dc1967c2a9 /src/game/GameController.cpp
parentbaf07e470e50905148784eb6008cf69878440dfa (diff)
downloadpowder-ab8466e9908d3982d498b63197bb80ffb489f3c1.zip
powder-ab8466e9908d3982d498b63197bb80ffb489f3c1.tar.gz
Search window is persistent, issue #66
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index 7e5d930..e39b47b 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -587,7 +587,8 @@ void GameController::SetActiveTool(int toolSelection, Tool * tool)
void GameController::OpenSearch()
{
- search = new SearchController(new SearchCallback(this));
+ if(!search)
+ search = new SearchController(new SearchCallback(this));
ui::Engine::Ref().ShowWindow(search->GetView());
}