From e894f7c000a17b267fb81a05aa987642344a9688 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Fri, 21 Jul 2023 12:54:54 +0300 Subject: [PATCH] PluginModel: Do not call begin/end resetModel in constructor This is only needed if we update the data afterward --- interfaces/pluginmodel.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/interfaces/pluginmodel.cpp b/interfaces/pluginmodel.cpp index b2cef79a4..140e13e7f 100644 --- a/interfaces/pluginmodel.cpp +++ b/interfaces/pluginmodel.cpp @@ -16,10 +16,7 @@ PluginModel::PluginModel(QObject *parent) { connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged); connect(this, &QAbstractItemModel::rowsRemoved, this, &PluginModel::rowsChanged); - - beginResetModel(); m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/")); - endResetModel(); } PluginModel::~PluginModel()