Search window is persistent, issue #66

This commit is contained in:
Simon Robertshaw 2012-08-04 12:09:07 +01:00
parent baf07e470e
commit ab8466e990
2 changed files with 3 additions and 2 deletions

View File

@ -587,6 +587,7 @@ void GameController::SetActiveTool(int toolSelection, Tool * tool)
void GameController::OpenSearch() void GameController::OpenSearch()
{ {
if(!search)
search = new SearchController(new SearchCallback(this)); search = new SearchController(new SearchCallback(this));
ui::Engine::Ref().ShowWindow(search->GetView()); ui::Engine::Ref().ShowWindow(search->GetView());
} }

View File

@ -76,7 +76,7 @@ void SearchController::Exit()
} }
if(callback) if(callback)
callback->ControllerExit(); callback->ControllerExit();
HasExited = true; //HasExited = true;
} }
SearchController::~SearchController() SearchController::~SearchController()