Check if the m_effectsList is valid before we try to access it

This commit is contained in:
Antonis Tsiapaliokas 2013-09-10 13:34:55 +03:00 committed by Martin Gräßlin
parent 159bccc2d5
commit 50dd943e7d

View file

@ -210,6 +210,7 @@ void EffectModel::handleDesktopSwitching(int row)
void EffectModel::handleWindowManagement(int row, bool enabled)
{
if (m_effectsList.size() > 0)
m_effectsList[row].effectStatus = enabled;
}