summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/fetchmore/filelistmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/itemviews/fetchmore/filelistmodel.cpp')
-rw-r--r--examples/itemviews/fetchmore/filelistmodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/itemviews/fetchmore/filelistmodel.cpp b/examples/itemviews/fetchmore/filelistmodel.cpp
index 42146f8edc..d9678191d9 100644
--- a/examples/itemviews/fetchmore/filelistmodel.cpp
+++ b/examples/itemviews/fetchmore/filelistmodel.cpp
@@ -107,9 +107,10 @@ void FileListModel::setDirPath(const QString &path)
{
QDir dir(path);
+ beginResetModel();
fileList = dir.entryList();
fileCount = 0;
- reset();
+ endResetModel();
}
//![0]