summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/progresstask.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/progresstask.h b/ui/progresstask.h
index 6f15da42..de4580ae 100644
--- a/ui/progresstask.h
+++ b/ui/progresstask.h
@@ -510,7 +510,8 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject
// construction.
std::mutex taskMutex;
taskMutex.lock();
- ProgressTask* task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) {
+ ProgressTask* task;
+ task = new ProgressTask(parent, title, text, cancel, [&](ProgressFunction progress) {
auto innerProgress = [=](size_t cur, size_t max) {
// Fix dialog disappearing if the backgrounded task thinks it's done
if (cur >= max)