mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Don't reload anything if the model is not loaded
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user