This commit is contained in:
DavidXanatos 2023-08-03 13:53:01 +02:00
parent d0120fb243
commit b3ca34adf4
2 changed files with 11 additions and 3 deletions

View File

@ -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);
}
}

View File

@ -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