VirtualBox

Changeset 83751 in vbox for trunk/src


Ignore:
Timestamp:
Apr 17, 2020 1:33:03 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137272
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Cleanup for machine power down stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r83709 r83751  
    10621062        CSession comSession = uiCommon().openExistingSession(pItem->id());
    10631063        if (comSession.isNull())
    1064             return;
     1064            break;
    10651065
    10661066        /* Get session console: */
     
    10681068        /* Prepare machine power down: */
    10691069        CProgress comProgress = comConsole.PowerDown();
    1070         if (comConsole.isOk())
     1070        if (!comConsole.isOk())
     1071            msgCenter().cannotPowerDownMachine(comConsole);
     1072        else
    10711073        {
    10721074            /* Show machine power down progress: */
    1073             CMachine machine = comSession.GetMachine();
    1074             msgCenter().showModalProgressDialog(comProgress, machine.GetName(), ":/progress_poweroff_90px.png");
     1075            msgCenter().showModalProgressDialog(comProgress, pItem->name(), ":/progress_poweroff_90px.png");
    10751076            if (!comProgress.isOk() || comProgress.GetResultCode() != 0)
    1076                 msgCenter().cannotPowerDownMachine(comProgress, machine.GetName());
    1077         }
    1078         else
    1079             msgCenter().cannotPowerDownMachine(comConsole);
     1077                msgCenter().cannotPowerDownMachine(comProgress, pItem->name());
     1078        }
    10801079
    10811080        /* Unlock machine finally: */
Note: See TracChangeset for help on using the changeset viewer.

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