Skip to content

runners/bookmarks: re-add per thread db connection

Yifan Zhu requested to merge work/fanzhuyifan/fix2 into master

Partially reverts commit 59983ac0. Create new connection for each thread, instead of sharing one connection.

According to Qt documentation, "A connection can only be used from within the thread that created it. Moving connections between threads or creating queries from a different thread is not supported." (https://doc.qt.io/qt-6/threads-modules.html#threads-and-the-sql-module)

BUG: 479315

Split from !3740 (merged).

@alex

Merge request reports