VirtualBox

Ignore:
Timestamp:
Apr 7, 2017 5:40:54 PM (8 years ago)
Author:
vboxsync
Message:

Main/Machine: fix the operation count handling for IMachine.deleteConfig - it was subtly broken for a long time (showing wrong sub-operation messages) and just halfway working, and recently this inconsistency resulted in a logical bug which exposed the mess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r66217 r66483  
    53565356                if (FAILED(mac.rc())) throw mac.rc();
    53575357                Utf8Str strLocation = pMedium->i_getLocationFull();
     5358                LogFunc(("Deleting file %s\n", strLocation.c_str()));
    53585359                rc = task.m_pProgress->SetNextOperation(BstrFmt(tr("Deleting '%s'"), strLocation.c_str()).raw(), 1);
    53595360                if (FAILED(rc)) throw rc;
    5360                 LogFunc(("Deleting file %s\n", strLocation.c_str()));
    53615361            }
    53625362            if (pMedium->i_isMediumFormatFile())
     
    55265526                         Bstr(tr("Deleting files")).raw(),
    55275527                         true /* fCancellable */,
    5528                          (ULONG)(llFilesToDelete.size() + llMediums.size() + 1),   // cOperations
    5529                          BstrFmt(tr("Deleting '%s'"), llFilesToDelete.front().c_str()).raw());
     5528                         (ULONG)(1 + llMediums.size() + llFilesToDelete.size() + 1),    // cOperations
     5529                         Bstr(tr("Collecting file inventory")).raw());
    55305530    if (FAILED(rc))
    55315531        return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette