Make sure the first item in the list is always selected in ROM browse

mode.  It was actually always supposed to do this, but a one-line
bug prevented it (thanks to Alex and TelcoLou for this).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1157 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2006-11-27 14:52:51 +00:00
parent 9fa5ea44ab
commit b7e6bed91b
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: LauncherDialog.cxx,v 1.55 2006-05-18 12:20:06 stephena Exp $
// $Id: LauncherDialog.cxx,v 1.56 2006-11-27 14:52:51 stephena Exp $
//
// Based on code from ScummVM - Scumm Interpreter
// Copyright (C) 2002-2004 The ScummVM project
@ -244,7 +244,7 @@ void LauncherDialog::updateListing(bool fullReload)
myRomCount->setLabel(buf.str());
// Restore last selection
if(!(myList->getList().isEmpty() || myBrowseModeFlag))
if(!myList->getList().isEmpty())
{
if(myBrowseModeFlag)
myList->setSelected(0);