Skip to content

Commit

Permalink
Merge pull request #63 from Gitoffthelawn/patch-1
Browse files Browse the repository at this point in the history
Fixed a few small errors, added clarifications
  • Loading branch information
DavidXanatos committed Jun 21, 2020
2 parents 13bcf3b + df8a141 commit f00ef56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SandboxiePlus/SandMan/Views/SbieView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,22 @@ void CSbieView::OnSandBoxAction()
Results.append(SandBoxes.first()->RunCommand("cmd.exe"));
else if (Action == m_pMenuRename)
{
QString Value = QInputDialog::getText(this, "Sandboxie-Plus", "Please enter a new name for the Sandbox.", QLineEdit::Normal, SandBoxes.first()->GetName());
QString Value = QInputDialog::getText(this, "Sandboxie-Plus", "Please enter a new name for the Sandbox (without spaces).", QLineEdit::Normal, SandBoxes.first()->GetName());
if (Value.isEmpty() || Value == SandBoxes.first()->GetName())
return;
Results.append((SandBoxes.first()->RenameBox(Value)));
}
else if (Action == m_pMenuRemove)
{
if (QMessageBox("Sandboxie-Plus", tr("Do you really want remove the sellected sandboxes?"), QMessageBox::Warning, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton).exec() != QMessageBox::Yes)
if (QMessageBox("Sandboxie-Plus", tr("Do you really want remove the selected sandbox(es)?"), QMessageBox::Warning, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton).exec() != QMessageBox::Yes)
return;

foreach(const CSandBoxPtr& pBox, SandBoxes)
Results.append(pBox->RemoveBox());
}
else if (Action == m_pMenuCleanUp)
{
if (QMessageBox("Sandboxie-Plus", tr("Do you really want delete teh content of the sellected sandboxes?"), QMessageBox::Warning, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton).exec() != QMessageBox::Yes)
if (QMessageBox("Sandboxie-Plus", tr("Do you really want delete the content of the selected sandbox(es)?"), QMessageBox::Warning, QMessageBox::Yes, QMessageBox::No | QMessageBox::Default | QMessageBox::Escape, QMessageBox::NoButton).exec() != QMessageBox::Yes)
return;

theGUI->GetProgressDialog()->show();
Expand Down

0 comments on commit f00ef56

Please sign in to comment.