https://bugs.kde.org/show_bug.cgi?id=448593

--- Comment #27 from 319513...@outlook.com <319513...@outlook.com> ---
Sorry reply too later. 

I encounter some bugs that makes this plugins can't meet my requirements. For a
compromise, I write two function to load album, the one use QThreadPool, and
anther use  PreviewLoadThread, then I add a option let user decide which loader
they like.

Besides, I rename data_loading to master, and the previous master rename to
old. And I remove raw sync codes, use signal-and-slot for a more clear code,
although its performance is slightly lower, I think it's worth it.

Let me make it clear, the bugs come from PreviewLoadThread is:

1. t->load(this->createLoadingDescription(url.toLocalFile()));, then only one
picture for every album be loaded.
2. if I use PreviewLoadThread::loadFastButLargeSynchronously(url.toLocalFile(),
1920 * 1080); then digikam will crash when I close plugins before all pictures
be loaded.

Anther way is use loadFastButLargeSynchronously inside QThreadPool, this can
solve bug 2, but I still feel some stuck when close plugin before pictures be
loaded.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to