mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added same trick on ESC
This commit is contained in:
parent
e34ed72ff7
commit
6cca74aec6
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user