PluginModel: Do not call begin/end resetModel in constructor
This is only needed if we update the data afterward
This commit is contained in:
parent
98040c3ffe
commit
e894f7c000
1 changed files with 0 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue