Update SandManRecovery.cpp

fixed #3668
This commit is contained in:
DavidXanatos 2024-03-02 13:59:35 +01:00
parent 22b8a64ae6
commit 15c10f2963
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
void CSandMan::OnFileToRecover(const QString& BoxName, const QString& FilePath, const QString& BoxPath, quint32 ProcessId)
{
CSandBoxPtr pBox = theAPI->GetBoxByName(BoxName);
if ((!pBox.isNull() && pBox.objectCast<CSandBoxPlus>()->IsRecoverySuspended()) || IsDisableRecovery())
if (pBox.isNull() || pBox.objectCast<CSandBoxPlus>()->IsRecoverySuspended() || IsDisableRecovery())
return;
if (theConf->GetBool("Options/InstantRecovery", true))