Fix index out of bounds when an app is hidden

This commit is contained in:
Cameron Gutman 2020-11-28 17:33:15 -06:00
parent 1780d9417f
commit e0d42cbe9c

View file

@ -49,7 +49,7 @@ Session* AppModel::createSessionForApp(int appIndex)
int AppModel::getDirectLaunchAppIndex()
{
for (int i = 0; i < m_AllApps.count(); i++) {
for (int i = 0; i < m_VisibleApps.count(); i++) {
if (m_VisibleApps[i].directLaunch) {
return i;
}