mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
revert to qthreadpool
This commit is contained in:
parent
b2e5f43652
commit
a4133761ee
4
zim.cc
4
zim.cc
|
@ -1373,7 +1373,9 @@ class ZimResourceRequest: public Dictionary::DataRequest
|
|||
public:
|
||||
ZimResourceRequest(ZimDictionary &dict_, string const &resourceName_)
|
||||
: dict(dict_), resourceName(resourceName_) {
|
||||
(new ZimResourceRequestRunnable(*this, hasExited))->run();
|
||||
//(new ZimResourceRequestRunnable(*this, hasExited))->run();
|
||||
QThreadPool::globalInstance()->start(
|
||||
new ZimResourceRequestRunnable( *this, hasExited ) );
|
||||
}
|
||||
|
||||
void run(); // Run from another thread by ZimResourceRequestRunnable
|
||||
|
|
Loading…
Reference in a new issue