aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-04-28 13:22:10 -0400
committerKen Moore <ken@ixsystems.com>2017-04-28 13:22:10 -0400
commitba70b1707ce14fd3bdbc5c9f5a4db0dc603b4898 (patch)
tree575e6579a1fed06fd5cdabf46c07952ad72deffe /src-qt5/core
parentAdd cut/copy/rename functionality to the desktop icons in Lumina. (diff)
downloadlumina-ba70b1707ce14fd3bdbc5c9f5a4db0dc603b4898.tar.gz
lumina-ba70b1707ce14fd3bdbc5c9f5a4db0dc603b4898.tar.bz2
lumina-ba70b1707ce14fd3bdbc5c9f5a4db0dc603b4898.zip
Make sure the cut/delete options for desktop icons are still possible if the "file" is actually a symlink somewhere else on the system (will just remove the symlink)
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index a79ed162..1730dbaa 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -109,7 +109,7 @@ void AppLauncherPlugin::loadButton(){
this->contextMenu()->addAction(LXDG::findIcon("edit-rename","edit-new"), tr("Rename"), this, SLOT(fileRename()) );
}
this->contextMenu()->addAction(LXDG::findIcon("edit-copy",""), tr("Copy"), this, SLOT(fileCopy()) );
- if(info.isWritable() || (info.isSymLink() && QFileInfo(info.canonicalPath()).isWritable() ) ){
+ if(info.isWritable() || (info.isSymLink() && QFileInfo(info.absolutePath()).isWritable() ) ){
this->contextMenu()->addAction(LXDG::findIcon("edit-cut",""), tr("Cut"), this, SLOT(fileCut()) );
this->contextMenu()->addAction(LXDG::findIcon("document-close",""), tr("Delete"), this, SLOT(fileDelete()) );
}
bgstack15