This commit is contained in:
love-code-yeyixiao 2024-08-26 22:21:58 +08:00
parent 7734cea9fb
commit 07eb42d055
1 changed files with 2 additions and 1 deletions

View File

@ -1089,7 +1089,6 @@ QString CSbieView::ImportSandbox()
QString rootname = "";
if (QMessageBox::question(this, tr("Importing Sandbox"), tr("Do you want to select custom root folder?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes) {
rootname=QFileDialog::getExistingDirectory(this);
pBox->SetText("FileRootPath", rootname);
}
auto pBoxEx = pBox.objectCast<CSandBoxPlus>();
@ -1101,6 +1100,8 @@ QString CSbieView::ImportSandbox()
if (!Status.IsError())
Status = pBoxEx->ImportBox(Path,rootname,Password);
if(!rootname.isEmpty())
pBox->SetText("FileRootPath", rootname);
}
}
if (Status.GetStatus() == OP_ASYNC) {