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())
|
if (!askToSaveProject())
|
||||||
{
|
{
|
||||||
|
event->ignore();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -301,7 +302,7 @@ void TasEditorWindow::closeWindow(void)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//printf("Close Window\n");
|
printf("Tas Editor Close Window\n");
|
||||||
done(0);
|
done(0);
|
||||||
deleteLater();
|
deleteLater();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue