Changeset View
Changeset View
Standalone View
Standalone View
kioslave/desktop/kio_desktop.cpp
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 203 | if (!path.isEmpty()) { | |||
---|---|---|---|---|---|
207 | if (!name.isEmpty()) | 207 | if (!name.isEmpty()) | ||
208 | entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, name); | 208 | entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, name); | ||
209 | 209 | | |||
210 | if (file.noDisplay() || !file.tryExec()) | 210 | if (file.noDisplay() || !file.tryExec()) | ||
211 | entry.insert(KIO::UDSEntry::UDS_HIDDEN, 1); | 211 | entry.insert(KIO::UDSEntry::UDS_HIDDEN, 1); | ||
212 | } | 212 | } | ||
213 | 213 | | |||
214 | // Set the target URL to the local path | 214 | // Set the target URL to the local path | ||
215 | entry.insert(KIO::UDSEntry::UDS_TARGET_URL, entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH)); | 215 | QUrl localUrl(QUrl::fromLocalFile(entry.stringValue(KIO::UDSEntry::UDS_LOCAL_PATH))); | ||
216 | entry.insert(KIO::UDSEntry::UDS_TARGET_URL, localUrl.toString()); | ||||
216 | } | 217 | } | ||
217 | 218 | | |||
218 | void DesktopProtocol::rename(const QUrl &_src, const QUrl &_dest, KIO::JobFlags flags) | 219 | void DesktopProtocol::rename(const QUrl &_src, const QUrl &_dest, KIO::JobFlags flags) | ||
219 | { | 220 | { | ||
220 | Q_UNUSED(flags) | 221 | Q_UNUSED(flags) | ||
221 | 222 | | |||
222 | if (_src == _dest) { | 223 | if (_src == _dest) { | ||
223 | finished(); | 224 | finished(); | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |