Commit 06fbeb80 authored by Agata Cacko's avatar Agata Cacko
Browse files

Fix infinite progress bar on import animation frames

Before this patch, when you tried to import one picture
using Import Animation Frames feature, there was an infinite
progress bar that was not possible to get rid of.
This commit fixes that behaviour (progress bar fills itself
and disappear when the image is loaded).


- import one .png file
- import one .gif file
- import one .kra file
- import multiple .png files
parent d7eb54d6
......@@ -76,7 +76,7 @@ KisImportExportFilter::ConversionStatus KisAnimationImporter::import(QStringList
int filesProcessed = 0;
if (m_d->updater) {
m_d->updater->setRange(0, files.size() - 1);
m_d->updater->setRange(0, files.size());
KisRasterKeyframeChannel *contentChannel = 0;
......@@ -100,7 +100,7 @@ KisImportExportFilter::ConversionStatus KisAnimationImporter::import(QStringList
if (m_d->updater->interrupted()) {
m_d->stop = true;
} else {
m_d->updater->setValue(filesProcessed + 1);
// the updater doesn't call that automatically,
// it is "threaded" by default
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment