mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: make checkDesktopFile in kfileitem operation
it was always returning false because it was checking if a local scope variable (set to false) was not NULL or 0.
This commit is contained in:
parent
fd3cbf8bb1
commit
e89235680d
1 changed files with 1 additions and 1 deletions
|
@ -899,7 +899,7 @@ static bool checkDesktopFile(const KFileItem& item, bool _determineMimeType)
|
|||
// only local files
|
||||
bool isLocal;
|
||||
const KUrl url = item.mostLocalUrl(isLocal);
|
||||
if (!isLocal)
|
||||
if (!url.isLocalFile())
|
||||
return false;
|
||||
|
||||
// only regular files
|
||||
|
|
Loading…
Add table
Reference in a new issue