0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-09 10:43:19 -05:00

qt: Name ClientModel timer QThread

This commit is contained in:
Hennadii Stepanov 2020-04-27 21:06:24 +03:00
parent 2c7f5d8c2e
commit ad5f614bf3
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -15,6 +15,7 @@
#include <net.h>
#include <netbase.h>
#include <util/system.h>
#include <util/threadnames.h>
#include <validation.h>
#include <stdint.h>
@ -52,6 +53,9 @@ ClientModel::ClientModel(interfaces::Node& node, OptionsModel *_optionsModel, QO
// move timer to thread so that polling doesn't disturb main event loop
timer->moveToThread(m_thread);
m_thread->start();
QTimer::singleShot(0, timer, []() {
util::ThreadRename("qt-clientmodl");
});
subscribeToCoreSignals();
}