Fix crash when rendering from command line and no write access to config file (#3413)

* Fix crash when rendering from command line and no write access to config file

* Remove redundant call to ConfigManager::addRecentlyOpenedProject()
This commit is contained in:
Oskar Wallgren
2017-03-08 10:59:40 +01:00
committed by GitHub
parent 9545f968b3
commit 1b6a9f4885
2 changed files with 15 additions and 9 deletions

View File

@@ -922,7 +922,6 @@ void MainWindow::openRecentlyOpenedProject( QAction * _action )
const QString & f = _action->text();
setCursor( Qt::WaitCursor );
Engine::getSong()->loadProject( f );
ConfigManager::inst()->addRecentlyOpenedProject( f );
setCursor( Qt::ArrowCursor );
}
runAutoSave();