Skip to content

Commit ad5f614

Browse files
committed
qt: Name ClientModel timer QThread
1 parent 2c7f5d8 commit ad5f614

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qt/clientmodel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <net.h>
1616
#include <netbase.h>
1717
#include <util/system.h>
18+
#include <util/threadnames.h>
1819
#include <validation.h>
1920

2021
#include <stdint.h>
@@ -52,6 +53,9 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
5253
// move timer to thread so that polling doesn't disturb main event loop
5354
timer->moveToThread(m_thread);
5455
m_thread->start();
56+
QTimer::singleShot(0, timer, []() {
57+
util::ThreadRename("qt-clientmodl");
58+
});
5559

5660
subscribeToCoreSignals();
5761
}

0 commit comments

Comments
 (0)