qt: continue event loop during game close
This commit is contained in:
parent
1b11e0f0d3
commit
053ad04d3f
4 changed files with 64 additions and 14 deletions
|
@ -259,3 +259,9 @@ void OverlayDialog::InputThread() {
|
|||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayDialog::keyPressEvent(QKeyEvent* e) {
|
||||
if (!ui->buttonsDialog->isHidden() || e->key() != Qt::Key_Escape) {
|
||||
QDialog::keyPressEvent(e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue