D29772: Don't compare string with empty string

Kai Uwe Broulik noreply at phabricator.kde.org
Fri May 15 10:13:20 BST 2020


broulik added inline comments.

INLINE COMMENTS

> FileDialogLoader.qml:39
>          selectExisting: !root.isSaveDialog
> -        folder: (root.lastFolder == "") ? shortcuts.home : root.lastFolder
> +        folder: (root.lastFolder.length === 0) ? shortcuts.home : root.lastFolder
>          nameFilters: [ i18n("KWin Rules (*.kwinrule)") ]

Why not just `!root.lastFolder`? or even

  root.lastFolder || shortcuts.home

REPOSITORY
  R108 KWin

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

To: ognarb, #plasma, iasensio
Cc: broulik, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20200515/9b131a38/attachment.htm>


More information about the kwin mailing list