D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-24 Thread Méven Car
This revision was automatically updated to reflect the committed changes. Closed by commit R119:8f1043c641a2: KCM/ComponentChooser Treat cases when there is no app for a usage (authored by meven). REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-24 Thread Méven Car
meven marked an inline comment as done. meven added a comment. Is it fine for other reviewers ? REPOSITORY R119 Plasma Desktop BRANCH arcpatch-D27395 REVISION DETAIL https://phabricator.kde.org/D27395 To: meven, bport, ervin, crossi, davidedmundson, #plasma Cc: anthonyfieroni,

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-21 Thread Méven Car
meven added a comment. Is it fine for other reviewers ? REPOSITORY R119 Plasma Desktop BRANCH arcpatch-D27395 REVISION DETAIL https://phabricator.kde.org/D27395 To: meven, bport, ervin, crossi, davidedmundson, #plasma Cc: anthonyfieroni, plasma-devel, Orage, LeGast00n,

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-18 Thread Méven Car
meven updated this revision to Diff 75926. meven added a comment. Make validLastCurrentIndex const, newline before { REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D27395?vs=75920=75926 BRANCH arcpatch-D27395 REVISION DETAIL

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-18 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > componentchooser.h:51 > > +int validLastCurrentIndex() { > +// m_currentIndex == -1 means there are no previously saved value { in new line, add const REPOSITORY R119 Plasma Desktop REVISION DETAIL

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-18 Thread Méven Car
meven updated this revision to Diff 75920. meven marked 2 inline comments as done. meven added a comment. Add a validLastCurrentIndex function, check emailClientService is not null before using it REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-17 Thread Kevin Ottens
ervin added inline comments. INLINE COMMENTS > componentchooseremail.cpp:155 > KSharedConfig::Ptr profile = > KSharedConfig::openConfig(QStringLiteral("mimeapps.list"), > KConfig::NoGlobals, QStandardPaths::GenericConfigLocation); > -if (profile->isConfigWritable(true) &&

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-16 Thread David Edmundson
davidedmundson added a comment. I thought the bug was that we weren't checking the RC from KService::serviceByStorageId before using it REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D27395 To: meven, bport, ervin, crossi, davidedmundson, #plasma Cc:

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven added a comment. How about you @bport ? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D27395 To: meven, bport, ervin, crossi, davidedmundson, #plasma Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2,

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Cyril Rossi
crossi added a comment. looks ok to me REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D27395 To: meven, bport, ervin, crossi Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham,

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven added inline comments. INLINE COMMENTS > meven wrote in componentchooseremail.cpp:154 > I would rather do the opposite the check below is for historical reasons from > before my refactoring. I meant to remove the check below (which I did). REPOSITORY R119 Plasma Desktop REVISION

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven added inline comments. INLINE COMMENTS > crossi wrote in componentchooseremail.cpp:154 > While you are here, can you had a check on this pointer. I don't understand > why there is one below but not here. I would rather do the opposite the check below is for historical reasons from

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven updated this revision to Diff 75695. meven marked an inline comment as done. meven added a comment. Clean a redundant check, ensure that if the user cancels selecting a custom app, the right entry is selected and hasChanged reflects the state correctly REPOSITORY R119 Plasma Desktop

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Cyril Rossi
crossi added inline comments. INLINE COMMENTS > componentchooseremail.cpp:154 > } else { > pSettings->setSetting(KEMailSettings::ClientProgram, > emailClientService->storageId()); > pSettings->setSetting(KEMailSettings::ClientTerminal, > emailClientService->terminal() ?

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven updated this revision to Diff 75691. meven added a comment. standardize how we check if the combobox has a value to save, allow to mark the value as changed when there was no value selected at the beginning REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven added inline comments. INLINE COMMENTS > bport wrote in componentchooserbrowser.cpp:107 > add a space between - and 1 > > By the way this check seems strange to me, can you confirm it still allow to > save custom browser ? Once the user has added browsers to the list, they appear as

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven updated this revision to Diff 75679. meven marked an inline comment as done. meven added a comment. Add a space REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D27395?vs=75671=75679 BRANCH arcpatch-D27384 REVISION DETAIL

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Benjamin Port
bport requested changes to this revision. bport added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > componentchooserbrowser.cpp:107 > { > +if (currentIndex() == count() -1) { > +// no browser installed, nor selected add a space between - and 1

D27395: KCM/ComponentChooser Treat cases when there is no app for a usage

2020-02-14 Thread Méven Car
meven created this revision. meven added reviewers: bport, ervin, crossi. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. meven requested review of this revision. REVISION SUMMARY BUG: 417276 TEST PLAN Have no email client installed. In kcm componentchooser -