summaryrefslogtreecommitdiffstats
path: root/common/queryrunner.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-26 13:34:43 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-03-26 13:34:43 +0200
commitb334872e612433aee1284561fa247127bcdeeaf8 (patch)
treedb0c7761b50db385b68458d610d79d0e72207e8b /common/queryrunner.h
parent29f80e6e4d698217933b7bd2df90c08162416d3f (diff)
downloadsink-b334872e612433aee1284561fa247127bcdeeaf8.tar.gz
sink-b334872e612433aee1284561fa247127bcdeeaf8.zip
Avoid triggering a fetch when a resource disconnects
Diffstat (limited to 'common/queryrunner.h')
-rw-r--r--common/queryrunner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/queryrunner.h b/common/queryrunner.h
index af54619..35093e2 100644
--- a/common/queryrunner.h
+++ b/common/queryrunner.h
@@ -50,7 +50,7 @@ protected slots:
50 /** 50 /**
51 * Rerun query with new revision 51 * Rerun query with new revision
52 */ 52 */
53 void revisionChanged(qint64 newRevision) 53 void revisionChanged()
54 { 54 {
55 run().exec(); 55 run().exec();
56 } 56 }
@@ -59,7 +59,7 @@ private:
59 /** 59 /**
60 * Starts query 60 * Starts query
61 */ 61 */
62 KAsync::Job<void> run(qint64 newRevision = 0) 62 KAsync::Job<void> run()
63 { 63 {
64 return queryFunction(); 64 return queryFunction();
65 } 65 }