Commit e7fae8c7 authored by Geoffroy Lacarriere's avatar Geoffroy Lacarriere

[import]: stop the preview when "Ok/Cancel" button are pressed

parent dfb3553e
......@@ -182,6 +182,11 @@ void ImportController::treeViewDoubleClicked( const QModelIndex& index )
forwardButtonClicked();
}
void ImportController::reject()
{
m_preview->stop();
}
void ImportController::accept()
{
QUuid id;
......@@ -190,6 +195,7 @@ void ImportController::accept()
Media* media = m_model->getMedias()->value( id );
Library::getInstance()->addMedia( media );
}
m_preview->stop();
done( Accepted );
}
......
......@@ -69,6 +69,7 @@ class ImportController : public QDialog
void newMediaLoaded( Media* media );
void updateMediaRequested( Media* media );
void accept();
void reject();
void mediaSelection( const QUuid& uuid );
void clipSelection( const QUuid& uuid );
void mediaDeletion( const QUuid& uuid );
......
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