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,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());
}

View File

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