Changeset 21777 in vbox
- Timestamp:
- Jul 23, 2009 2:23:34 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r20123 r21777 263 263 void cannotCloseMedium (QWidget *aParent, const VBoxMedium &aMedium, 264 264 const COMResult &aResult); 265 void cannotEjectDrive(); 265 266 266 267 void cannotOpenSession (const CSession &session); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r21479 r21777 2844 2844 } 2845 2845 } 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 } 2846 2859 } 2847 2860 … … 2892 2905 vboxProblem().cannotSaveMachineSettings (m); 2893 2906 } 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(); 2894 2920 } 2895 2921 } -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r21586 r21777 1202 1202 } 1203 1203 1204 void 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 1204 1212 void VBoxProblemReporter::cannotOpenSession (const CSession &session) 1205 1213 {
Note:
See TracChangeset
for help on using the changeset viewer.