Commit 907510ab authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use beginResetModel() properly at start of change, drop deprecated reset()

parent bc2f17fa
......@@ -70,7 +70,7 @@ void LnfListModel::clearThemeList()
void LnfListModel::reload()
{
reset();
beginResetModel();
clearThemeList();
// get all desktop themes
......@@ -118,7 +118,6 @@ void LnfListModel::reload()
m_themes << info;
}
beginResetModel();
endResetModel();
emit countChanged();
}
......
......@@ -69,7 +69,7 @@ void ThemeListModel::clearThemeList()
void ThemeListModel::reload()
{
reset();
beginResetModel();
clearThemeList();
// get all desktop themes
......@@ -117,7 +117,6 @@ void ThemeListModel::reload()
m_themes[name] = info;
}
beginResetModel();
endResetModel();
emit countChanged();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment