Bug fix for close event on Qt TAS editor. Ignore event if save project dialog returns false.
This commit is contained in:
parent
e79de93c18
commit
6d81529b4c
|
@ -287,6 +287,7 @@ void TasEditorWindow::closeEvent(QCloseEvent *event)
|
|||
|
||||
if (!askToSaveProject())
|
||||
{
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -301,7 +302,7 @@ void TasEditorWindow::closeWindow(void)
|
|||
{
|
||||
return;
|
||||
}
|
||||
//printf("Close Window\n");
|
||||
printf("Tas Editor Close Window\n");
|
||||
done(0);
|
||||
deleteLater();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue