Don't refill if height() < 0, that gives bad ranges for from/to and the code gets confused
commit1059f9ba7033f5fe89b6112a80538246316b3be7
authorAlbert Astals <albert.astals@canonical.com>
dateWed 15 Jan 2014, 15:15 (13 years ago)
parent09de2ed
plugins/DashViews/abstractjournal.cpp+1−1
@@ -194,7 +194,7 @@ void AbstractJournal::createDelegateModel()
194194
195195void AbstractJournal::refill()
196196{
197− if (!isComponentComplete()) {
197+ if (!isComponentComplete() || height() < 0) {
198198 return;
199199 }
200200