bugfix: indexing an empty categoriesTitles
This commit is contained in:
parent
4b7e22384b
commit
9ef1545d93
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ void TemplatesModel::setCurrentCategory(int index)
|
|||
|
||||
void TemplatesModel::updateTemplatesByCategory()
|
||||
{
|
||||
if (categoriesTitles().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_visibleTemplates.clear();
|
||||
m_currentTemplateIndex = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue