Changeset View
Changeset View
Standalone View
Standalone View
src/core/kfileitem.cpp
Show First 20 Lines • Show All 950 Lines • ▼ Show 20 Line(s) | |||||
951 | 951 | | |||
952 | /** | 952 | /** | ||
953 | * Returns true if this is a desktop file. | 953 | * Returns true if this is a desktop file. | ||
954 | * Mimetype determination is optional. | 954 | * Mimetype determination is optional. | ||
955 | */ | 955 | */ | ||
956 | static bool checkDesktopFile(const KFileItem &item, bool _determineMimeType) | 956 | static bool checkDesktopFile(const KFileItem &item, bool _determineMimeType) | ||
957 | { | 957 | { | ||
958 | // only local files | 958 | // only local files | ||
959 | if (!item.isLocalFile()) { | 959 | bool isLocalUrl; | ||
960 | item.mostLocalUrl(&isLocalUrl); | ||||
961 | if (!isLocalUrl) { | ||||
960 | return false; | 962 | return false; | ||
961 | } | 963 | } | ||
962 | 964 | | |||
963 | // only regular files | 965 | // only regular files | ||
964 | if (!item.isRegularFile()) { | 966 | if (!item.isRegularFile()) { | ||
965 | return false; | 967 | return false; | ||
966 | } | 968 | } | ||
967 | 969 | | |||
▲ Show 20 Lines • Show All 633 Lines • Show Last 20 Lines |