Merge branch 'master' into master
This commit is contained in:
parent
c1205fd043
commit
36a98ad3d0
|
@ -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:"));
|
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(!respone.isEmpty())
|
if(!response.isEmpty())
|
||||||
{
|
{
|
||||||
if (theAPI->GetBoxByName(respone) != NULL) {
|
if (theAPI->GetBoxByName(response) != NULL) {
|
||||||
if (Message.right(1)=="\\"||!Message.contains(".", Qt::CaseInsensitive)) {
|
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 {
|
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:"));
|
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 (!respone.isEmpty())
|
if (!response.isEmpty())
|
||||||
{
|
{
|
||||||
if (theAPI->GetBoxByName(respone) != NULL) {
|
if (theAPI->GetBoxByName(response) != NULL) {
|
||||||
theAPI->GetBoxByName(respone)->AppendText("OpenFilePath", Message.mid(4).replace("\"", ""));
|
theAPI->GetBoxByName(response)->AppendText("OpenFilePath", Message.mid(4).replace("\"", ""));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
QMessageBox::warning(g_GUIParent, tr("Sandboxie-Plus Warning"), tr("You typed a wrong box name!Nothing was changed."), QMessageBox::Ok, 0);
|
QMessageBox::warning(g_GUIParent, tr("Sandboxie-Plus Warning"), tr("You typed a wrong box name!Nothing was changed."), QMessageBox::Ok, 0);
|
||||||
|
|
Loading…
Reference in New Issue