Commit 5757fc59 authored by Geoffroy Lacarriere's avatar Geoffroy Lacarriere
Browse files

Resolve a bug in the progress dialog when loading a partialy imported folder

parent d5e0f64e
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <QDomElement> #include <QDomElement>
#include <QHash> #include <QHash>
#include <QMessageBox> #include <QMessageBox>
#include <QProgressDialog>
#include <QUuid> #include <QUuid>
Library::Library() Library::Library()
...@@ -264,7 +265,10 @@ Library::loadFile( const QFileInfo& fileInfo, int loadingMedias ) ...@@ -264,7 +265,10 @@ Library::loadFile( const QFileInfo& fileInfo, int loadingMedias )
if ( !mediaAlreadyLoaded( fileInfo ) ) if ( !mediaAlreadyLoaded( fileInfo ) )
addMedia( fileInfo ); addMedia( fileInfo );
else else
{
m_progressDialog->setMaximum( m_loadingMedias - 1 );
m_progressDialog->setValue( ++m_nbLoadedMedias ); m_progressDialog->setValue( ++m_nbLoadedMedias );
}
} }
else else
{ {
......
Markdown is supported
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