diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2024-07-31 22:02:51 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2024-08-01 13:45:34 +0300 |
commit | 4f090708a98a03d7df049329d816955cdaaf857d (patch) | |
tree | 40e03d6124a46bf988e000c2885a04a1b2917ae2 /tdeioslave/remote/remoteimpl.cpp | |
parent | d0616cdd0e3a9bc0ffa39bb6c4c590539b220082 (diff) | |
download | tdebase-4f090708a98a03d7df049329d816955cdaaf857d.tar.gz tdebase-4f090708a98a03d7df049329d816955cdaaf857d.zip |
Remote protocol: add UDS_LOCAL_PATH atom to remote folders
This change makes it possible for network folders in Remote Places to be moved to and restored from the Trash folder.
Before this change, such folders could only be removed via deletion (shift+delete) and could not be restored afterwards.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit e6fc9bed16c981e42418340772b984ba8a02114b)
Diffstat (limited to 'tdeioslave/remote/remoteimpl.cpp')
-rw-r--r-- | tdeioslave/remote/remoteimpl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tdeioslave/remote/remoteimpl.cpp b/tdeioslave/remote/remoteimpl.cpp index a0f37b624..51182686f 100644 --- a/tdeioslave/remote/remoteimpl.cpp +++ b/tdeioslave/remote/remoteimpl.cpp @@ -218,7 +218,8 @@ void RemoteImpl::createEntry(TDEIO::UDSEntry &entry, { kdDebug(1220) << "RemoteImpl::createEntry" << endl; - KDesktopFile desktop(directory+file, true); + TQString desktopPath(directory + file); + KDesktopFile desktop(desktopPath, true); kdDebug(1220) << "path = " << directory << file << endl; @@ -237,6 +238,8 @@ void RemoteImpl::createEntry(TDEIO::UDSEntry &entry, addAtom(entry, TDEIO::UDS_ICON_NAME, 0, icon); addAtom(entry, TDEIO::UDS_LINK_DEST, 0, desktop.readURL()); + + addAtom(entry, TDEIO::UDS_LOCAL_PATH, 0, desktopPath); } bool RemoteImpl::statNetworkFolder(TDEIO::UDSEntry &entry, const TQString &filename) const |