Diffusion KIO af0105c22ec8

Fix editing autostart entries when /usr/local/share/applications doesn't exist

Authored by arojas on Oct 31 2016, 8:36 PM.

Description

Fix editing autostart entries when /usr/local/share/applications doesn't exist

QFileInfo.canonicalFilePath() returns an empty string for non-existant directories, which matches any .desktop file path and makes
KPropertiesDialog try to save it to the wrong location. Make sure that the dir exists before trying to match it in the .desktop file path

BUG: 371194
REVIEW: 129280
FIXED-IN: 5.28

Details

Committed
arojasOct 31 2016, 8:36 PM
Parents
R241:b4fe6cdd7f76: [KOpenWithDialog] Hide TreeView header
Branches
Unknown
Tags
Unknown