diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/scoped.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/options/scoped.cpp b/options/scoped.cpp index 9cbc826c..00f30be7 100644 --- a/options/scoped.cpp +++ b/options/scoped.cpp @@ -1,4 +1,5 @@ #include "scoped.hpp" +#include "compat/run-in-thread.hpp" #include <QApplication> #include <QThread> @@ -48,7 +49,12 @@ static bool is_tracker_teardown() opts::~opts() { if (!is_tracker_teardown() && raii) +#if 1 + run_in_thread_sync(qApp->thread(), [this]{ b->reload(); }); +#else + assert(b); b->reload(); +#endif #if 0 else qDebug() << "in teardown, not reloading" << b->name(); |