From b3ca34adf4a25269abb160ed01b01fa1ad980a17 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:53:01 +0200 Subject: [PATCH] 1.10.2d --- SandboxiePlus/SandMan/Views/SbieView.cpp | 12 ++++++++++-- SandboxiePlus/version.h | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index 17767dc6..58c8f066 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -1820,7 +1820,12 @@ void CSbieView::OnMenuContextMenu(const QPoint& point) } else m_pCtxPinToRun->setData(FoundPin); - m_pCtxMkLink->setData(LinkTarget); + + m_pCtxMkLink->setData(pBoxPlus->GetFullCommand(LinkTarget)); + m_pCtxMkLink->setProperty("Icon", pBoxPlus->GetFullCommand(pAction->property("Icon").toString())); + m_pCtxMkLink->setProperty("IconIndex", pAction->property("IconIndex")); + m_pCtxMkLink->setProperty("WorkingDir", pBoxPlus->GetFullCommand(pAction->property("WorkingDir").toString())); + m_pCtxMenu->exec(QCursor::pos()); } } @@ -1844,9 +1849,12 @@ void CSbieView::OnMenuContextAction() else if (pAction == m_pCtxMkLink) { QString LinkTarget = m_pCtxMkLink->data().toString(); + QString Icon = m_pCtxMkLink->property("Icon").toString(); + int IconIndex = m_pCtxMkLink->property("IconIndex").toInt(); + QString WorkingDir = m_pCtxMkLink->property("WorkingDir").toString(); QString BoxName = pBoxPlus->GetName(); - CreateShortcut(pBoxPlus->GetFullCommand(LinkTarget), BoxName); + CreateShortcut(LinkTarget, BoxName, Icon, IconIndex, WorkingDir); } } diff --git a/SandboxiePlus/version.h b/SandboxiePlus/version.h index 56cc4850..0bdcb09e 100644 --- a/SandboxiePlus/version.h +++ b/SandboxiePlus/version.h @@ -3,7 +3,7 @@ #define VERSION_MJR 1 #define VERSION_MIN 10 #define VERSION_REV 2 -#define VERSION_UPD 3 +#define VERSION_UPD 4 #ifndef STR #define STR2(X) #X