Fix index out of bounds when an app is hidden
This commit is contained in:
parent
1780d9417f
commit
e0d42cbe9c
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ Session* AppModel::createSessionForApp(int appIndex)
|
||||||
|
|
||||||
int AppModel::getDirectLaunchAppIndex()
|
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) {
|
if (m_VisibleApps[i].directLaunch) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue