mirror of
https://github.com/leozide/leocad
synced 2025-02-07 08:45:49 +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);
|
Project->SetActiveModel(0);
|
||||||
lcGetPiecesLibrary()->RemoveTemporaryPieces();
|
lcGetPiecesLibrary()->RemoveTemporaryPieces();
|
||||||
|
|
||||||
if (mProject && !mProject->GetFileName().isEmpty())
|
if (mProject && !mProject->GetFileName().isEmpty() && mPreferences.mRestoreTabLayout)
|
||||||
{
|
{
|
||||||
QSettings Settings;
|
QSettings Settings;
|
||||||
QByteArray TabLayout = Settings.value(GetTabLayoutKey()).toByteArray();
|
QByteArray TabLayout = Settings.value(GetTabLayoutKey()).toByteArray();
|
||||||
|
|
Loading…
Add table
Reference in a new issue