Fixed crash in starting up the debugger; a re-disassemble should only occur after the debugger has started up completely.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2148 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-10-11 14:21:54 +00:00
parent 3ec26d3a29
commit b775a83e00
2 changed files with 4 additions and 3 deletions

View File

@ -614,8 +614,8 @@ void Debugger::setStartState()
// Save initial state, but don't add it to the rewind list
saveOldState(false);
// Force a re-disassemble
myRom->invalidate();
// Set the 're-disassemble' flag, but don't do it until the next scheduled time
myRom->invalidate(false);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -42,7 +42,8 @@ class RomWidget : public Widget, public CommandSender
RomWidget(GuiObject* boss, const GUI::Font& font, int x, int y);
virtual ~RomWidget();
void invalidate() { myListIsDirty = true; loadConfig(); }
void invalidate(bool forcereload = true)
{ myListIsDirty = true; if(forcereload) loadConfig(); }
void scrollTo(int line) { myRomList->setSelected(line); }
void handleCommand(CommandSender* sender, int cmd, int data, int id);