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

Fix missing index validity check for cursortheme

BUG: 454829
(cherry picked from commit bb678094)
parent a0fcc683
Pipeline #189083 passed with stage
in 7 minutes and 27 seconds
......@@ -285,7 +285,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