diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 5cce4fa3..ca73e784 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -1640,15 +1640,15 @@ void CSandMan::OnMessage(const QString& MsgData) { - QString respone = QInputDialog::getText(g_GUIParent, tr("Which box you want to add in?"), tr("Type the box name which you are going to set:")); - if(!respone.isEmpty()) + QString response = QInputDialog::getText(g_GUIParent, tr("Which box you want to add in?"), tr("Type the box name which you are going to set:")); + if(!response.isEmpty()) { - if (theAPI->GetBoxByName(respone) != NULL) { + if (theAPI->GetBoxByName(response) != NULL) { if (Message.right(1)=="\\"||!Message.contains(".", Qt::CaseInsensitive)) { - theAPI->GetBoxByName(respone)->AppendText("ForceFolder", Message.mid(4).replace("\"","")); + theAPI->GetBoxByName(response)->AppendText("ForceFolder", Message.mid(4).replace("\"","")); } else { - theAPI->GetBoxByName(respone)->AppendText("ForceProcess", Message.mid(4).replace("\"", "").mid(Message.mid(4).replace("\"", "").lastIndexOf("\\")+1)); + theAPI->GetBoxByName(response)->AppendText("ForceProcess", Message.mid(4).replace("\"", "").mid(Message.mid(4).replace("\"", "").lastIndexOf("\\")+1)); } } @@ -1664,11 +1664,11 @@ void CSandMan::OnMessage(const QString& MsgData) { - QString respone = QInputDialog::getText(g_GUIParent, tr("Which box you want to add in?"), tr("Type the box name which you are going to set:")); - if (!respone.isEmpty()) + QString response = QInputDialog::getText(g_GUIParent, tr("Which box you want to add in?"), tr("Type the box name which you are going to set:")); + if (!response.isEmpty()) { - if (theAPI->GetBoxByName(respone) != NULL) { - theAPI->GetBoxByName(respone)->AppendText("OpenFilePath", Message.mid(4).replace("\"", "")); + if (theAPI->GetBoxByName(response) != NULL) { + theAPI->GetBoxByName(response)->AppendText("OpenFilePath", Message.mid(4).replace("\"", "")); } else { QMessageBox::warning(g_GUIParent, tr("Sandboxie-Plus Warning"), tr("You typed a wrong box name!Nothing was changed."), QMessageBox::Ok, 0);