D17181: [Componentchooser KCM] Make default browser app choice work even when combobox is not used

Nathaniel Graham noreply at phabricator.kde.org
Tue Nov 27 00:24:33 GMT 2018


ngraham created this revision.
ngraham added reviewers: Plasma, cfeck.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
ngraham requested review of this revision.

REVISION SUMMARY
  BUG: 350663
  FIXED-IN: 5.12.8
  
  When choosing a default browser app using the app list combobox, the choice was noly being saved after the combobox was used, because its signal was connected to an inline function that saved the choice, while the radio button that enabled the combobox was not. As a result, if you clicked on that radio button and didn't need to use the combobox because it was already showing your preferred browser, that action was not actually getting saved.
  
  This patch fixes the situation ym moving the inline function into a real explicit slot function and connecting the radio button to it as well

TEST PLAN
  - Go to the component chooser KCM's default browser module
  - Reset to defaults, then leave the KCM and open it again
  - Click the in the following application radio button
  - Do NOT touch the combobox
  - Click Apply
  - Leave the KCM and come back
  
  With this patch, the radio button's state is preserved and the correct browser is selected in the combobox.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  fix-default-browser-app-combobox (branched from Plasma/5.12)

REVISION DETAIL
  https://phabricator.kde.org/D17181

AFFECTED FILES
  kcms/componentchooser/componentchooserbrowser.cpp
  kcms/componentchooser/componentchooserbrowser.h

To: ngraham, #plasma, cfeck
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181127/8d913596/attachment.html>


More information about the Plasma-devel mailing list