Commit 853aebac authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Import: Fixed crash when loading a directory containing at least one directory.

Fixes #63
Also removed a forgotten debug output.
parent 3f0f45d4
...@@ -200,7 +200,7 @@ ImportController::importDir( const QString &path ) ...@@ -200,7 +200,7 @@ ImportController::importDir( const QString &path )
foreach ( QFileInfo fInfo, files ) foreach ( QFileInfo fInfo, files )
{ {
if ( fInfo.isDir() == true ) if ( fInfo.isDir() == true )
importDir( fInfo.absolutePath() ); importDir( fInfo.absoluteFilePath() );
else else
{ {
QString ext = fInfo.suffix(); QString ext = fInfo.suffix();
......
...@@ -359,7 +359,6 @@ Clip* TrackWorkflow::removeClip( const QUuid& id ) ...@@ -359,7 +359,6 @@ Clip* TrackWorkflow::removeClip( const QUuid& id )
computeLength(); computeLength();
cw->disconnect(); cw->disconnect();
delete cw; delete cw;
qDebug() << "Deleted clipworkflow";
if ( m_length == 0 ) if ( m_length == 0 )
emit trackEndReached( m_trackId ); emit trackEndReached( m_trackId );
return clip; return clip;
......
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