added same trick on ESC

This commit is contained in:
csoler 2021-02-18 22:48:16 +01:00
parent e34ed72ff7
commit 6cca74aec6

View File

@ -152,7 +152,7 @@ void CreateCircleDialog::reject()
void CreateCircleDialog::keyPressEvent(QKeyEvent *e) void CreateCircleDialog::keyPressEvent(QKeyEvent *e)
{ {
if(e->key() != Qt::Key_Escape) if(e->key() != Qt::Key_Escape || tryClose())
QDialog::keyPressEvent(e); QDialog::keyPressEvent(e);
} }