Review Request 129213: [Places Item Edit Dialog] Fix accepting dialog with Return

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Fri Oct 28 12:35:00 BST 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129213/#review100353
-----------------------------------------------------------


Fix it, then Ship it!





src/panels/places/placesitemeditdialog.h (line 35)
<https://git.reviewboard.kde.org/r/129213/#comment67355>

    Remove



src/panels/places/placesitemeditdialog.h (line 77)
<https://git.reviewboard.kde.org/r/129213/#comment67356>

    Remove empty line


- Emmanuel Pescosta


On Oct. 18, 2016, 3:38 p.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129213/
> -----------------------------------------------------------
> 
> (Updated Oct. 18, 2016, 3:38 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Repository: dolphin
> 
> 
> Description
> -------
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   src/panels/places/placesitemeditdialog.h 8a0dc04 
>   src/panels/places/placesitemeditdialog.cpp 7d36531 
> 
> Diff: https://git.reviewboard.kde.org/r/129213/diff/
> 
> 
> Testing
> -------
> 
> Right clicked a place, chose "Edit". Inspired by upstream KFilePlacesEditDialog in KIO.
> 
> The "OK" button is now properly highlighted as default button (it's slightly lighter than the Cancel button).
> 
> Pressing Return while the URL input is focused now accepts the dialog rather than opening the "Choose folder" dialog. Pressing Return while another button is focused (be it the browse or icon button) still triggers the button as expected.
> 
> Pressing Escape dismisses the dialog without saving.
> 
> Clearing the URL field disables the OK button as expected.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20161028/b073b2bb/attachment.htm>


More information about the kfm-devel mailing list