This commit is contained in:
DavidXanatos 2023-02-07 21:59:08 +01:00
parent 17ac1af2f3
commit df2dbe342d
2 changed files with 7 additions and 1 deletions

View File

@ -21,6 +21,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
-- note: Template_Edge_Fix is no longer required
- replaced a few icons
- moved teh "Support" settings page the above "Advance Options" page and remaned it to "Support & Updates"
- when draging and droping a file on to the sandman UI to run it the currently selected box will be pre selected in the box picker dialog
### Fixed
- added AppContainer support for Compartment type boxes

View File

@ -1371,7 +1371,12 @@ void CSandMan::dropEvent(QDropEvent* e)
Commands.append(url.toLocalFile().replace("/", "\\"));
}
QTimer::singleShot(0, this, [Commands, this]() { RunSandboxed(Commands); });
QString BoxName;
QList<CSandBoxPtr> Boxes = m_pBoxView->GetSelectedBoxes();
if (Boxes.count() == 1)
BoxName = Boxes.first()->GetName();
QTimer::singleShot(0, this, [Commands, BoxName, this]() { RunSandboxed(Commands, BoxName); });
}
void CSandMan::timerEvent(QTimerEvent* pEvent)