Check for empty group list in _FindNextValidApp(). Fixes #9632

Thanks mmlr! I went with "The easiest solution". Perhaps the OKToUse() could be simplified by removing the checks for background apps and Deskbar but I prefer to keep it as is in case there someone changes the code in the future.
This commit is contained in:
John Scipione 2013-04-16 01:32:02 -04:00
parent 6e22ba05d6
commit 45fec7fc74

View File

@ -877,6 +877,9 @@ TSwitchManager::CycleApp(bool forward, bool activateNow)
bool
TSwitchManager::_FindNextValidApp(bool forward)
{
if (fGroupList.IsEmpty())
return false;
int32 startIndex = fCurrentIndex;
int32 max = fGroupList.CountItems();