mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Start new model when closing the last tab. Fixes #422.
This commit is contained in:
parent
59098436b7
commit
bbc40d5a22
1 changed files with 4 additions and 0 deletions
|
@ -933,6 +933,8 @@ void lcMainWindow::ModelTabClosed(int Index)
|
|||
{
|
||||
if (mModelTabWidget->count() != 1)
|
||||
delete mModelTabWidget->widget(Index);
|
||||
else
|
||||
NewProject();
|
||||
}
|
||||
|
||||
void lcMainWindow::ModelTabChanged(int Index)
|
||||
|
@ -1449,6 +1451,8 @@ void lcMainWindow::CloseCurrentModelTab()
|
|||
{
|
||||
if (mModelTabWidget->count() > 1)
|
||||
delete mModelTabWidget->currentWidget();
|
||||
else
|
||||
NewProject();
|
||||
}
|
||||
|
||||
void lcMainWindow::SetCurrentModelTab(lcModel* Model)
|
||||
|
|
Loading…
Add table
Reference in a new issue