Skip to content

Commit

Permalink
Ensure that QFileSystemWatcher is on same thread as runner plugin
Browse files Browse the repository at this point in the history
If we have it as a member without a parent, it will not be moved to the thread
The stacktrace though did not indicate this specifically, but it fixes the reproducible bug
Fixes: #20
  • Loading branch information
alex1701c committed Jan 3, 2025
1 parent b537836 commit d063337
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runner/emojirunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ EmojiRunner::EmojiRunner(QObject *parent, const KPluginMetaData &pluginMetaData,
#else
: KRunner::AbstractRunner(parent, pluginMetaData)
#endif
, watcher(this)
{
Q_UNUSED(args)
// Add file watcher for config
Expand Down

0 comments on commit d063337

Please sign in to comment.