Fix main window not receiving focus after leaving a file navigation dialog

This commit is contained in:
2014-04-14 20:35:30 -04:00
parent 441e0a5459
commit 121273bf57
5 changed files with 47 additions and 56 deletions

View File

@@ -15,16 +15,14 @@
namespace fs = boost::filesystem; // TODO: Centralize this alias
bool isFrontWindow(sf::Window& win);
void makeFrontWindow(sf::Window& win, bool acceptKeyInput = true);
void makeFrontWindow(sf::Window& win);
void init_fileio();
struct no_file_chosen {}; // an exception class
fs::path nav_get_party() throw(no_file_chosen);
fs::path nav_put_party() throw(no_file_chosen);
fs::path nav_get_scenario() throw(no_file_chosen);
fs::path nav_put_scenario() throw(no_file_chosen);
fs::path nav_get_party();
fs::path nav_put_party();
fs::path nav_get_scenario();
fs::path nav_put_scenario();
class ModalSession {
void* session;