Try again to fix crash when exiting the server profile screen without networking.

This commit is contained in:
hiker
2016-03-21 14:14:21 +11:00
parent ad545861ed
commit ee4c4bd962
2 changed files with 8 additions and 5 deletions

View File

@@ -115,7 +115,6 @@ void OnlineProfileServers::eventCallback(Widget* widget, const std::string& name
}
}
} // eventCallback
// ----------------------------------------------------------------------------
@@ -171,8 +170,12 @@ void OnlineProfileServers::doQuickPlay()
} // doQuickPlay
// ----------------------------------------------------------------------------
void OnlineProfileServers::tearDown()
/** Also called when pressing the back button. It resets the flags to indicate
* a networked game.
*/
bool OnlineProfileServers::onEscapePressed()
{
//NetworkConfig::get()->unsetNetworking();
} // onDialogClose
NetworkConfig::get()->unsetNetworking();
return OnlineProfileBase::onEscapePressed();
} // onEscapePressed

View File

@@ -52,7 +52,7 @@ public:
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void init() OVERRIDE;
virtual void tearDown() OVERRIDE;
virtual bool onEscapePressed() OVERRIDE;
}; // class OnlineProfileServers