Skip to content

kcms/keys: Fix applications model load

David Edmundson requested to merge work/d_ed/fix_model_load into master

The current model calls beginResetModel then starts an asynchronous task which will finally call endResetModel. All the time m_components and thus the rowCount is changing.

It is undefined to process events between begin and end calls.

This patch introduced a temporary variable whilst loading components so we can make a simpler synchronous reset.

BUG: 472666

Edited by David Edmundson

Merge request reports

Loading