1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-16 03:44:56 +02:00

gui/src/SearchWindow.cpp: Pass a pointer to m_ksearch in call to QtConocurrent::run()

It's not passed by reference otherwise. so it will copy the whole object.
This commit is contained in:
Henrik Hautakoski 2020-04-28 09:48:04 +02:00
parent a3be286579
commit 3cc6a2530e

View file

@ -214,7 +214,7 @@ void SearchWindow::search()
m_ksearch.setThreadCount(m_num_threads.value());
#endif /* EOSIOKEYGEN_HAVE_THREADS */
QFuture<void> future = QtConcurrent::run(m_ksearch, &eoskeygen::KeySearch::find, m_num_results.value());
QFuture<void> future = QtConcurrent::run(&m_ksearch, &eoskeygen::KeySearch::find, m_num_results.value());
m_worker.setFuture(future);
m_status.setText("Searching for: " + QString::fromStdString(eoskeygen::strlist::join(list, ", ")));