Bugfix to usage of BSPF_equalsIgnoreCase; it was actually using reversed

logic.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2049 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-06-14 13:11:39 +00:00
parent 91f22e4ddc
commit 86b2eddc2e
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ void ContextMenu::setSelected(const string& tag, const string& defaultTag)
{ {
for(unsigned int item = 0; item < _entries.size(); ++item) for(unsigned int item = 0; item < _entries.size(); ++item)
{ {
if(BSPF_equalsIgnoreCase(_entries[item].second, tag) == 0) if(BSPF_equalsIgnoreCase(_entries[item].second, tag))
{ {
setSelected(item); setSelected(item);
return; return;
@ -144,7 +144,7 @@ void ContextMenu::setSelected(const string& tag, const string& defaultTag)
// If we get this far, the value wasn't found; use the default value // If we get this far, the value wasn't found; use the default value
for(unsigned int item = 0; item < _entries.size(); ++item) for(unsigned int item = 0; item < _entries.size(); ++item)
{ {
if(BSPF_equalsIgnoreCase(_entries[item].second, defaultTag) == 0) if(BSPF_equalsIgnoreCase(_entries[item].second, defaultTag))
{ {
setSelected(item); setSelected(item);
return; return;