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:
parent
6e22ba05d6
commit
45fec7fc74
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user