aboutsummaryrefslogtreecommitdiff
path: root/desktop-editor
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-editor')
-rw-r--r--desktop-editor/dialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-editor/dialog.cpp b/desktop-editor/dialog.cpp
index 4b4d066a..232e645c 100644
--- a/desktop-editor/dialog.cpp
+++ b/desktop-editor/dialog.cpp
@@ -68,6 +68,10 @@ void Dialog::LoadDesktopFile(QString input)
bool ok = false;
DF = LXDG::loadDesktopFile(desktopFileName, ok);
if( ok ) {
+ if ((DF.type == XDGDesktop::LINK) && (desktopType!="link" )) {
+ //we open a desktop type "link" but it was not mentionned by parameters
+ Dialog::Initialise("-link");
+ }
ui->lName->setText(DF.name);
ui->lComment->setText(DF.comment);
ui->lCommand->setText(DF.exec);
bgstack15