diff options
author | Ken Moore <ken@ixsystems.com> | 2017-04-28 13:22:10 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-04-28 13:22:10 -0400 |
commit | ba70b1707ce14fd3bdbc5c9f5a4db0dc603b4898 (patch) | |
tree | 575e6579a1fed06fd5cdabf46c07952ad72deffe /src-qt5 | |
parent | Add cut/copy/rename functionality to the desktop icons in Lumina. (diff) | |
download | lumina-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')
-rw-r--r-- | src-qt5/core/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp | 2 |
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()) ); } |