mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
open browser dialog before manipulating it (fixes assert when pressing 'add game')
svn-id: r35807
This commit is contained in:
parent
75c2dc82b3
commit
0ab01c756a
@ -159,6 +159,9 @@ BrowserDialog::BrowserDialog(const char *title, bool dirBrowser)
|
||||
}
|
||||
|
||||
void BrowserDialog::open() {
|
||||
// Call super implementation
|
||||
Dialog::open();
|
||||
|
||||
if (ConfMan.hasKey("browser_lastpath"))
|
||||
_node = Common::FSNode(ConfMan.get("browser_lastpath"));
|
||||
if (!_node.isDirectory())
|
||||
@ -166,9 +169,6 @@ void BrowserDialog::open() {
|
||||
|
||||
// Alway refresh file list
|
||||
updateListing();
|
||||
|
||||
// Call super implementation
|
||||
Dialog::open();
|
||||
}
|
||||
|
||||
void BrowserDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
|
||||
|
Loading…
Reference in New Issue
Block a user