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 @@
#include <QDomElement>
#include <QHash>
#include <QMessageBox>
#include <QProgressDialog>
#include <QUuid>
Library::Library()
......@@ -264,8 +265,11 @@ Library::loadFile( const QFileInfo& fileInfo, int loadingMedias )
if ( !mediaAlreadyLoaded( fileInfo ) )
addMedia( fileInfo );
else
{
m_progressDialog->setMaximum( m_loadingMedias - 1 );
m_progressDialog->setValue( ++m_nbLoadedMedias );
}
}
else
{
QDir dir = QDir( fileInfo.filePath() );
......
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