diff options
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 5c15bbb..b264619 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -49,6 +49,7 @@ | |||
49 | static void queuedInvoke(const std::function<void()> &f, QObject *context = 0) | 49 | static void queuedInvoke(const std::function<void()> &f, QObject *context = 0) |
50 | { | 50 | { |
51 | auto timer = QSharedPointer<QTimer>::create(); | 51 | auto timer = QSharedPointer<QTimer>::create(); |
52 | timer->setSingleShot(true); | ||
52 | QObject::connect(timer.data(), &QTimer::timeout, context, [f, timer]() { | 53 | QObject::connect(timer.data(), &QTimer::timeout, context, [f, timer]() { |
53 | f(); | 54 | f(); |
54 | }); | 55 | }); |