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

@@ -119,16 +119,13 @@ bool handle_startup_press(location the_point)
void startup_load()////
{
try{
fs::path file_to_load = nav_get_party();
if(load_party(file_to_load)){
if(!file_to_load.empty() && load_party(file_to_load)){
party_in_memory = true;
if(univ.party.scen_name.length() > 0)
in_startup_mode = false;
else in_startup_mode = true;
}
} catch(no_file_chosen){}
makeFrontWindow(mainPtr);
if (!in_startup_mode) {
//end_anim();
end_startup();