This commit is contained in:
DavidXanatos 2024-11-15 10:00:47 +01:00
parent 66558acbba
commit 164bba3c64
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- validated compatibility with Windows build 27744 and updated DynData
- when running via drag and drop now the apps parent folder is used as working dir [#4073](https://github.com/sandboxie-plus/Sandboxie/issues/4073)

View File

@ -1810,7 +1810,9 @@ void CSandMan::dropEvent(QDropEvent* e)
if (Boxes.count() == 1)
BoxName = Boxes.first()->GetName();
QTimer::singleShot(0, this, [Commands, BoxName, this]() { RunSandboxed(Commands, BoxName); });
QString WrkDir = QFileInfo(Commands.first()).absoluteDir().path().replace("/","\\");
QTimer::singleShot(0, this, [Commands, BoxName, WrkDir, this]() { RunSandboxed(Commands, BoxName, WrkDir); });
}
void CSandMan::timerEvent(QTimerEvent* pEvent)