This commit is contained in:
DavidXanatos 2024-06-16 19:33:16 +02:00
parent 6a5dec1647
commit d02d9ee97b
4 changed files with 18 additions and 8 deletions

View File

@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Sandboxie will add CustomChromiumFlags=--disable-features=PrintCompositorLPAC to chrome based browsers command line
- Note: Less Privileged App Container (LPAC) don't work with sandboxie currently
- fixed Problem accessing a relative symlink with a target that starts with a dot [#3981](https://github.com/sandboxie-plus/Sandboxie/issues/3981)
- fixed Bug - Can't open a sandbox's properties window via double-click in System Tray context window [#3861](https://github.com/sandboxie-plus/Sandboxie/issues/3861)

View File

@ -3200,7 +3200,7 @@ void CSandMan::OnNotAuthorized(bool bLoginRequired, bool& bRetry)
void CSandMan::OnBoxDblClick(QTreeWidgetItem* pItem)
{
m_pBoxView->ShowOptions(pItem->data(0, Qt::UserRole).toString());
m_pBoxView->OnDoubleClicked(theAPI->GetBoxByName(pItem->data(0, Qt::UserRole).toString()));
}
void CSandMan::OnSandBoxAction()

View File

@ -1761,13 +1761,6 @@ void CSbieView::OnDoubleClicked(const QModelIndex& index)
{
QModelIndex ModelIndex = m_pSortProxy->mapToSource(index);
CSandBoxPtr pBox = m_pSbieModel->GetSandBox(ModelIndex);
if (pBox.isNull())
return;
if ((QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier) != 0) {
ShowOptions(pBox);
return;
}
if (index.column() == CSbieModel::ePath) {
OnSandBoxAction(m_pMenuExplore, QList<CSandBoxPtr>() << pBox);
@ -1777,6 +1770,20 @@ void CSbieView::OnDoubleClicked(const QModelIndex& index)
//if (index.column() != CSbieModel::eName)
// return;
OnDoubleClicked(pBox);
}
void CSbieView::OnDoubleClicked(const CSandBoxPtr &pBox)
{
if (pBox.isNull())
return;
if ((QGuiApplication::queryKeyboardModifiers() & Qt::ControlModifier) != 0) {
ShowOptions(pBox);
return;
}
if (!pBox->IsEnabled())
{
if (QMessageBox("Sandboxie-Plus", tr("This sandbox is disabled, do you want to enable it?"), QMessageBox::Question, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton, this).exec() != QMessageBox::Yes)

View File

@ -51,6 +51,8 @@ public:
//virtual void UpdateRunMenu();
void OnDoubleClicked(const CSandBoxPtr &pBox);
virtual QString AddNewBox(bool bAlowTemp = false);
virtual QString ImportSandbox();
virtual QString AddNewGroup();