VirtualBox

Changeset 21777 in vbox


Ignore:
Timestamp:
Jul 23, 2009 2:23:34 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 2703: FE/Qt4: ISO unmounting broken - Warn user if unmounting procedure failed.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r20123 r21777  
    263263    void cannotCloseMedium (QWidget *aParent, const VBoxMedium &aMedium,
    264264                            const COMResult &aResult);
     265    void cannotEjectDrive();
    265266
    266267    void cannotOpenSession (const CSession &session);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r21479 r21777  
    28442844        }
    28452845    }
     2846
     2847    if (drv.GetState() != KDriveState_NotMounted)
     2848    {
     2849        /* Looks like Main make no force unmounting here
     2850         * but IFloppyDrive::Unmount() is called synchronously.
     2851         * Also Main performs rollback for this procedure if
     2852         * it was failed by some reason - for example if the
     2853         * guest OS locked IFloppyDrive preventing image from
     2854         * unmounting - so no way to know the error was really
     2855         * occured. Thats why we just checking the drive state
     2856         * and warn a user about problem if present. */
     2857        vboxProblem().cannotEjectDrive();
     2858    }
    28462859}
    28472860
     
    28922905                vboxProblem().cannotSaveMachineSettings (m);
    28932906        }
     2907    }
     2908
     2909    if (drv.GetState() != KDriveState_NotMounted)
     2910    {
     2911        /* Looks like Main make no force unmounting here
     2912         * but IDVDDrive::Unmount() is called synchronously.
     2913         * Also Main performs rollback for this procedure if
     2914         * it was failed by some reason - for example if the
     2915         * guest OS locked IDVDDrive preventing image from
     2916         * unmounting - so no way to know the error was really
     2917         * occured. Thats why we just checking the drive state
     2918         * and warn a user about problem if present. */
     2919        vboxProblem().cannotEjectDrive();
    28942920    }
    28952921}
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r21586 r21777  
    12021202}
    12031203
     1204void VBoxProblemReporter::cannotEjectDrive()
     1205{
     1206    message (mainWindowShown(), Warning,
     1207             tr ("Failed to eject the disk from the virtual drive. "
     1208                 "The drive may be locked by the guest operating system. "
     1209                 "Please check this and try again."));
     1210}
     1211
    12041212void VBoxProblemReporter::cannotOpenSession (const CSession &session)
    12051213{
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