Check if the m_effectsList is valid before we try to access it
This commit is contained in:
parent
159bccc2d5
commit
50dd943e7d
1 changed files with 2 additions and 1 deletions
|
@ -210,7 +210,8 @@ void EffectModel::handleDesktopSwitching(int row)
|
||||||
|
|
||||||
void EffectModel::handleWindowManagement(int row, bool enabled)
|
void EffectModel::handleWindowManagement(int row, bool enabled)
|
||||||
{
|
{
|
||||||
m_effectsList[row].effectStatus = enabled;
|
if (m_effectsList.size() > 0)
|
||||||
|
m_effectsList[row].effectStatus = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EffectModel::findRowByServiceName(const QString &serviceName)
|
int EffectModel::findRowByServiceName(const QString &serviceName)
|
||||||
|
|
Loading…
Reference in a new issue