Don't reload anything if the model is not loaded

This commit is contained in:
Luis Ángel San Martín 2023-08-21 22:43:59 +02:00
parent fe983c2cd2
commit 060131d66a

View File

@ -108,6 +108,9 @@ QHash<int, QByteArray> FolderModel::roleNames() const
void FolderModel::reload()
{
if (rootItem == nullptr)
return;
if (!isSubfolder) {
auto newModelData = createModelData(_databasePath);