Properties dialog: stop handling 'Enter' key - use 'Ok' to close it

This commit is contained in:
Matthias Koefferlein 2024-08-08 20:46:22 +02:00
parent d31c9dbf6c
commit a601447d5f
2 changed files with 7 additions and 0 deletions

View File

@ -637,6 +637,12 @@ PropertiesDialog::reject ()
QDialog::reject (); QDialog::reject ();
} }
void
PropertiesDialog::accept ()
{
// stop handling "Enter" key.
}
} }
#endif #endif

View File

@ -116,6 +116,7 @@ public slots:
protected: protected:
void reject (); void reject ();
void accept ();
private: private:
Ui::PropertiesDialog *mp_ui; Ui::PropertiesDialog *mp_ui;