diff --git a/kcms/colors/colors.cpp b/kcms/colors/colors.cpp index c3048a4d7..136357ca6 100644 --- a/kcms/colors/colors.cpp +++ b/kcms/colors/colors.cpp @@ -119,6 +119,9 @@ bool KCMColors::downloadingFile() const void KCMColors::knsEntryChanged(KNSCore::EntryWrapper *entry) { + if (!entry) { + return; + } m_model->load(); // If a new theme was installed, select the first color file in it diff --git a/kcms/lookandfeel/kcm.cpp b/kcms/lookandfeel/kcm.cpp index 672f3e996..d86212bef 100644 --- a/kcms/lookandfeel/kcm.cpp +++ b/kcms/lookandfeel/kcm.cpp @@ -119,6 +119,9 @@ KCMLookandFeel::~KCMLookandFeel() void KCMLookandFeel::knsEntryChanged(KNSCore::EntryWrapper *wrapper) { + if (!wrapper) { + return; + } const KNSCore::EntryInternal entry = wrapper->entry(); auto removeItemFromModel = [&entry, this]() { const QString guessedPluginId = QFileInfo(entry.uninstalledFiles().constFirst()).fileName();