mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -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()
|
void FolderModel::reload()
|
||||||
{
|
{
|
||||||
|
if (rootItem == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!isSubfolder) {
|
if (!isSubfolder) {
|
||||||
auto newModelData = createModelData(_databasePath);
|
auto newModelData = createModelData(_databasePath);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user