Update SbieView.cpp Fix #3999

This commit is contained in:
1mm0rt41PC 2024-07-24 14:08:09 +02:00 committed by GitHub
parent 9a5ac146a2
commit 1bf28a8074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -1786,10 +1786,8 @@ void CSbieView::OnDoubleClicked(const CSandBoxPtr &pBox)
if (!pBox->IsEnabled())
{
if (QMessageBox("Sandboxie-Plus", tr("This sandbox is disabled or restricted to a group/user, do you want to edit it?"), QMessageBox::Question, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton, this).exec() != QMessageBox::Yes)
return;
pBox->SetText("Enabled", "y");
return;
if (QMessageBox("Sandboxie-Plus", tr("This sandbox is disabled or restricted to a group/user, do you want to allow box for everybody ?"), QMessageBox::Question, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton, this).exec() != QMessageBox::Yes)
pBox->SetText("Enabled", "y");// Fix #3999
}
QString Action = pBox->GetText("DblClickAction");