Clear the active domain when (re)opening the launcher dialog. This fixes bug
#1523050. svn-id: r23571
This commit is contained in:
parent
b4af5bc331
commit
9ab0c1d915
2 changed files with 9 additions and 0 deletions
|
@ -540,6 +540,14 @@ LauncherDialog::~LauncherDialog() {
|
||||||
delete _browser;
|
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() {
|
void LauncherDialog::close() {
|
||||||
// Save last selection
|
// Save last selection
|
||||||
const int sel = _list->getSelected();
|
const int sel = _list->getSelected();
|
||||||
|
|
|
@ -56,6 +56,7 @@ protected:
|
||||||
void updateListing();
|
void updateListing();
|
||||||
void updateButtons();
|
void updateButtons();
|
||||||
|
|
||||||
|
void open();
|
||||||
void close();
|
void close();
|
||||||
virtual void addGame();
|
virtual void addGame();
|
||||||
void removeGame(int item);
|
void removeGame(int item);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue