Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/BookListModel.cpp
Context not available. | |||||
146 | int i = 0; | 146 | int i = 0; | ||
---|---|---|---|---|---|
147 | foreach(BookEntry* entry, entries) | 147 | foreach(BookEntry* entry, entries) | ||
148 | { | 148 | { | ||
149 | addEntry(q, entry); | 149 | if (QFileInfo(entry->filename).exists()) { | ||
150 | if(++i % 100 == 0) { | 150 | addEntry(q, entry); | ||
151 | emit q->countChanged(); | 151 | if(++i % 100 == 0) { | ||
152 | qApp->processEvents(); | 152 | emit q->countChanged(); | ||
153 | qApp->processEvents(); | ||||
154 | } | ||||
155 | } else { | ||||
156 | db->removeEntry(entry); | ||||
153 | } | 157 | } | ||
154 | } | 158 | } | ||
155 | cacheLoaded = true; | 159 | cacheLoaded = true; | ||
Context not available. |