Commit cf137a2f authored by Benjamin Port's avatar Benjamin Port
Browse files

Fix KCM cursor theme build

parent 3f937101
...@@ -97,10 +97,10 @@ CursorThemeConfig::CursorThemeConfig(QObject *parent, const QVariantList &args) ...@@ -97,10 +97,10 @@ CursorThemeConfig::CursorThemeConfig(QObject *parent, const QVariantList &args)
connect(m_themeModel, &QAbstractItemModel::dataChanged, this, &CursorThemeConfig::settingsChanged); connect(m_themeModel, &QAbstractItemModel::dataChanged, this, &CursorThemeConfig::settingsChanged);
connect(m_themeModel, &QAbstractItemModel::dataChanged, this, [this] (const QModelIndex &start, const QModelIndex &end, const QVector<int> &roles) { connect(m_themeModel, &QAbstractItemModel::dataChanged, this, [this] (const QModelIndex &start, const QModelIndex &end, const QVector<int> &roles) {
const QModelIndex currentThemeIndex = m_themeModel->findIndex(m_settings->cursorTheme()); const QModelIndex currentThemeIndex = m_themeModel->findIndex(cursorThemeSettings()->cursorTheme());
if (roles.contains(CursorTheme::PendingDeletionRole) && currentThemeIndex.data(CursorTheme::PendingDeletionRole) == true if (roles.contains(CursorTheme::PendingDeletionRole) && currentThemeIndex.data(CursorTheme::PendingDeletionRole) == true
&& start.row() <= currentThemeIndex.row() && currentThemeIndex.row() <= end.row()) { && start.row() <= currentThemeIndex.row() && currentThemeIndex.row() <= end.row()) {
m_settings->setCursorTheme(m_themeModel->theme(m_themeModel->defaultIndex())->name()); cursorThemeSettings()->setCursorTheme(m_themeModel->theme(m_themeModel->defaultIndex())->name());
} }
}); });
} }
......
Markdown is supported
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