mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Added option to disable restoring tabs. Closes #412.
This commit is contained in:
parent
cbf534fcdf
commit
24fe422a8b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue