Commit 4afe35be authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ImportController: Don't display a folded tree if the last imported dir doesn't exist anymore.

For instance if you loaded a file from a removable hard drive.
parent 1a0b7c65
......@@ -257,6 +257,8 @@ ImportController::restoreCurrentPath()
{
QSettings s;
QVariant path = s.value( "ImportPreviouslySelectPath", QDir::homePath() );
if ( QFile::exists( path.toString() ) == false )
path = QDir::homePath();
QFileInfo info = path.toString();
m_currentlyWatchedDir = info.absoluteFilePath();
}
......
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