diff --git a/CHANGELOG.md b/CHANGELOG.md index eb0ddfb4..07e734de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 31f242d5..4e7937e9 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -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() diff --git a/SandboxiePlus/SandMan/Views/SbieView.cpp b/SandboxiePlus/SandMan/Views/SbieView.cpp index de200d62..02391219 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.cpp +++ b/SandboxiePlus/SandMan/Views/SbieView.cpp @@ -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() << 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) diff --git a/SandboxiePlus/SandMan/Views/SbieView.h b/SandboxiePlus/SandMan/Views/SbieView.h index cb0ce534..6b89d3a8 100644 --- a/SandboxiePlus/SandMan/Views/SbieView.h +++ b/SandboxiePlus/SandMan/Views/SbieView.h @@ -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();