]> cloud.milkyroute.net Git - dolphin.git/commit
[Places Item Edit Dialog] Fix accepting dialog with Return
authorKai Uwe Broulik <kde@privat.broulik.de>
Fri, 28 Oct 2016 11:40:50 +0000 (13:40 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Fri, 28 Oct 2016 11:40:50 +0000 (13:40 +0200)
commit95e1505c9f01bdae2c1157be1bb6fa5b991c8fd4
tree62e85dfbbf6cdd329ea1fb993c7687c74724a8e5
parent8828e686e94056af17e0c13b7550451c881af060
[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
src/panels/places/placesitemeditdialog.cpp
src/panels/places/placesitemeditdialog.h