[calendar] Delay the model reset until the view is ready
Otherwise things will crash. Reviewed-by: Eike Hein BUG: 355943
This commit is contained in:
parent
faca537924
commit
e33b486be6
@ -24,6 +24,7 @@
|
||||
#include <QDebug>
|
||||
#include <QByteArray>
|
||||
#include <QDir>
|
||||
#include <QMetaObject>
|
||||
|
||||
DaysModel::DaysModel(QObject *parent) :
|
||||
QAbstractListModel(parent),
|
||||
@ -230,5 +231,5 @@ void DaysModel::setPluginsManager(QObject *manager)
|
||||
connect(m_pluginsManager, &EventPluginsManager::pluginsChanged,
|
||||
this, &DaysModel::update);
|
||||
|
||||
update();
|
||||
QMetaObject::invokeMethod(this, "update", Qt::QueuedConnection);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user