D5502: Fix relativePath calculation in KDesktopFile::locateLocal()
Wolfgang Bauer
noreply at phabricator.kde.org
Wed Apr 19 10:13:15 UTC 2017
wbauer created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY
The "dir" and "path" variables are obviously swapped here by mistake.
This results in the relativePath always being empty, and makes the function return "~/.local/share/" (or "~/.config/") instead of the correct path.
BUG: 345100
TEST PLAN
Open kmenuedit, edit an existing sub menu and change the icon, the change is correctly applied now, it is written to ~/.local/share/desktop-directories/xxx.directory instead of ~/.local/share/xxx.directory.
Also create a new sub menu and choose a different icon immediately. The correct icon does show up in the application menu now.
REPOSITORY
R237 KConfig
REVISION DETAIL
https://phabricator.kde.org/D5502
AFFECTED FILES
src/core/kdesktopfile.cpp
To: wbauer
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170419/2eb00b88/attachment.html>
More information about the Kde-frameworks-devel
mailing list