This commit is contained in:
DavidXanatos 2023-07-25 20:59:26 +02:00
parent 1c63bcd641
commit c6f35a68c4
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- fixed UI issue with new box removal protection [#3104](https://github.com/sandboxie-plus/Sandboxie/issues/3104)
- fixed issue with link argument handling [#2969](https://github.com/sandboxie-plus/Sandboxie/issues/2969)
- fixed IPC issue introduced in 1.10.1 [#3132](https://github.com/sandboxie-plus/Sandboxie/issues/3132) [#3134](https://github.com/sandboxie-plus/Sandboxie/issues/3134)
- fixed issue with pined run entry icons

View File

@ -1809,7 +1809,7 @@ void CSbieView::OnMenuContextMenu(const QPoint& point)
if (FoundPin.isEmpty()) {
QVariantMap Entry;
Entry["Name"] = pAction->text();
Entry["Icon"] = pBoxPlus->MakeBoxCommand(pAction->property("Icon").toString()) + "," + pAction->property("IconIndex").toString();
Entry["Icon"] = pAction->property("Icon").toString().replace(pBoxPlus->GetFileRoot(), "%BoxRoot%", Qt::CaseInsensitive) + "," + pAction->property("IconIndex").toString();
Entry["WorkingDir"] = pBoxPlus->MakeBoxCommand(pAction->property("WorkingDir").toString());
Entry["Command"] = "\"" + pBoxPlus->MakeBoxCommand(LinkTarget) + "\"";
m_pCtxPinToRun->setData(MakeRunEntry(Entry));
@ -1900,7 +1900,7 @@ void CSbieView::UpdateRunMenu(const CSandBoxPtr& pBox)
else if(IconIndex.second.isEmpty())
pAction->setIcon(LoadWindowsIcon(pBoxEx->GetCommandFile(Entry["Command"].toString()), IconIndex.first.toInt()));
else
pAction->setIcon(LoadWindowsIcon(pBoxEx->GetCommandFile(IconIndex.first), IconIndex.second.toInt()));
pAction->setIcon(LoadWindowsIcon(IconIndex.first.replace("%BoxRoot%", pBoxEx->GetFileRoot(), Qt::CaseInsensitive), IconIndex.second.toInt()));
pAction->setData(Entry["Command"].toString());
pAction->setProperty("WorkingDir", Entry["WorkingDir"]);
}