diff options
author | Willem Jan Palenstijn | 2009-01-10 22:31:15 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-01-10 22:31:15 +0000 |
commit | 0ab01c756a454e8e8f0737fe7aa65b7e26757033 (patch) | |
tree | 6564cf7d25a8c02de1b927474d2841eb403ed0cb | |
parent | 75c2dc82b3814d0d74c0c7910e64a9ac081bfbaa (diff) | |
download | scummvm-rg350-0ab01c756a454e8e8f0737fe7aa65b7e26757033.tar.gz scummvm-rg350-0ab01c756a454e8e8f0737fe7aa65b7e26757033.tar.bz2 scummvm-rg350-0ab01c756a454e8e8f0737fe7aa65b7e26757033.zip |
open browser dialog before manipulating it (fixes assert when pressing 'add game')
svn-id: r35807
-rw-r--r-- | gui/browser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp index 961f2ced4c..1d20546c21 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -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) { |