]> Some of my projects - localmylist.git/commitdiff
Fix filtering for large models
authorAPTX <marek321@gmail.com>
Wed, 10 Apr 2013 15:11:03 +0000 (17:11 +0200)
committerAPTX <marek321@gmail.com>
Wed, 10 Apr 2013 15:11:03 +0000 (17:11 +0200)
localmylist/mylistmodel.cpp

index ce7bf000fec6dc4ea335c81a51be49a2e01bcf8a..931954e37b1f8e8ed85bbfb367a3a7cabe1c1e36 100644 (file)
@@ -426,7 +426,11 @@ void MyListModel::fetchFinished(MyListNode *node, int newrows)
        // Lazy loading didn't work for children, even before the async change, not sure why
        // TODO figure out if it can be fixed
        // Enableing this for non-root makes it never fetch more.
-       if (node == rootItem)
+       // TODO this breaks filtering on large sets
+       // With this scrolling would activate loading more
+       // If a filter finds few in the loaded set it will not request more
+       // even if it should.
+       if (false && node == rootItem)
        {
                delayFetchTimer.start(0);
                delayedFetchNode = node;