diff options
| author | Kai Uwe Broulik <[email protected]> | 2016-10-28 13:40:50 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2016-10-28 13:40:50 +0200 |
| commit | 95e1505c9f01bdae2c1157be1bb6fa5b991c8fd4 (patch) | |
| tree | 62e85dfbbf6cdd329ea1fb993c7687c74724a8e5 /src/panels/places/placesitemeditdialog.h | |
| parent | 8828e686e94056af17e0c13b7550451c881af060 (diff) | |
[Places Item Edit Dialog] Fix accepting dialog with Return
By setting a parent for the QDialogButtonBox we let QDialog handle everything by itself.
Also, store the dialog button box as a member rather than just the OK button.
This removes the need to set the OK button as default manually (which didn't work anyway)
and fixes pressing Return while the input is focused erroneously opening the folder browser
rather than accepting the dialog.
REVIEW: 129213
Diffstat (limited to 'src/panels/places/placesitemeditdialog.h')
| -rw-r--r-- | src/panels/places/placesitemeditdialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/places/placesitemeditdialog.h b/src/panels/places/placesitemeditdialog.h index 8a0dc0471..f2d69781a 100644 --- a/src/panels/places/placesitemeditdialog.h +++ b/src/panels/places/placesitemeditdialog.h @@ -31,7 +31,7 @@ class KIconButton; class KUrlRequester; class QLineEdit; class QCheckBox; -class QPushButton; +class QDialogButtonBox; class PlacesItemEditDialog: public QDialog { @@ -72,7 +72,7 @@ private: QLineEdit* m_textEdit; KIconButton* m_iconButton; QCheckBox* m_appLocal; - QPushButton *m_okButton; + QDialogButtonBox *m_buttonBox; }; #endif |
