Clear the active domain when (re)opening the launcher dialog. This fixes bug

#1523050.

svn-id: r23571
This commit is contained in:
Torbjörn Andersson 2006-07-22 21:23:49 +00:00
parent b4af5bc331
commit 9ab0c1d915
2 changed files with 9 additions and 0 deletions

View file

@ -540,6 +540,14 @@ LauncherDialog::~LauncherDialog() {
delete _browser;
}
void LauncherDialog::open() {
// Clear the active domain, in case we return to the dialog from a
// failure to launch a game. Otherwise, pressing ESC will attempt to
// re-launch the same game again.
ConfMan.setActiveDomain("");
Dialog::open();
}
void LauncherDialog::close() {
// Save last selection
const int sel = _list->getSelected();

View file

@ -56,6 +56,7 @@ protected:
void updateListing();
void updateButtons();
void open();
void close();
virtual void addGame();
void removeGame(int item);