Commit 71e3ba5f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ImportController: Fixing progress bar

parent 4a480c3c
......@@ -159,6 +159,7 @@ ImportController::importMedia( const QString &filePath )
m_temporaryMedias->addClip( clip );
++m_nbMediaToLoad;
m_ui->progressBar->setMaximum( m_nbMediaToLoad );
connect( media, SIGNAL( metaDataComputed( const Media* ) ), this, SLOT( mediaLoaded() ) );
}
void
......@@ -322,6 +323,7 @@ ImportController::failedToLoad( Media *media )
m_ui->errorLabel->show();
QTimer::singleShot( 3000, this, SLOT( hideErrors() ) );
m_temporaryMedias->deleteClip( media->baseClip()->uuid() );
mediaLoaded();
}
void
......
......@@ -29,7 +29,7 @@ Instance::Instance( QObject* parent /*= NULL*/ ) : QObject( parent )
{
char const *argv[] =
{
"-vvvvv",
// "-vvvvv",
"--no-skip-frames",
// "--intf", "dummy",
"--text-renderer", "dummy",
......
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