Added option to disable restoring tabs. Closes #412.

This commit is contained in:
Leonardo Zide 2020-01-01 17:10:24 -08:00
parent cbf534fcdf
commit 24fe422a8b

View file

@ -125,7 +125,7 @@ void lcApplication::SetProject(Project* Project)
Project->SetActiveModel(0);
lcGetPiecesLibrary()->RemoveTemporaryPieces();
if (mProject && !mProject->GetFileName().isEmpty())
if (mProject && !mProject->GetFileName().isEmpty() && mPreferences.mRestoreTabLayout)
{
QSettings Settings;
QByteArray TabLayout = Settings.value(GetTabLayoutKey()).toByteArray();