Commit bb678094 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix missing nullptr check for cursortheme

BUG: 454829
parent fa5457a4
Pipeline #189082 passed with stage
in 14 minutes and 18 seconds
......@@ -286,7 +286,7 @@ int CursorThemeConfig::cursorThemeIndex(const QString &cursorTheme) const
QString CursorThemeConfig::cursorThemeFromIndex(int index) const
{
QModelIndex idx = m_themeProxyModel->index(index, 0);
return m_themeProxyModel->theme(idx)->name();
return idx.isValid() ? m_themeProxyModel->theme(idx)->name() : QString();
}
void CursorThemeConfig::save()
......
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