mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Don't reload anything if the model is not loaded
This commit is contained in:
parent
fe983c2cd2
commit
060131d66a
@ -108,6 +108,9 @@ QHash<int, QByteArray> FolderModel::roleNames() const
|
||||
|
||||
void FolderModel::reload()
|
||||
{
|
||||
if (rootItem == nullptr)
|
||||
return;
|
||||
|
||||
if (!isSubfolder) {
|
||||
auto newModelData = createModelData(_databasePath);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user