Changeset 105548 in vbox
- Timestamp:
- Jul 31, 2024 12:43:12 AM (8 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
-
globals/UICommon.cpp (modified) (3 diffs)
-
globals/UICommon.h (modified) (2 diffs)
-
runtime/UISession.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r105547 r105548 329 329 else \ 330 330 (a_strDst).clear(); \ 331 } while (0)332 #define ASSIGN_OPT_VALUE_TO_QUUID(a_uuidDst) do { \333 if (*pszSep != '\0') \334 (a_uuidDst) = QUuid(&pszSep[1]); \335 else if (++i < argc) \336 (a_uuidDst) = QUuid(arguments.at(i)); \337 else \338 (a_uuidDst) = QUuid(); /* null UUID */ \339 331 } while (0) 340 332 … … 472 464 { 473 465 enmOptType = OptType_VMRunner; 474 /** @todo r=bird: this isn't correct. Must use QString instead of QUuid to store this! */ 475 ASSIGN_OPT_VALUE_TO_QUUID(m_uFloppyImage); 466 ASSIGN_OPT_VALUE_TO_QSTRING(m_strFloppyImage); 476 467 } 477 468 else if (MATCH_OPT_WITH_VALUE("--dvd") || MATCH_OPT_WITH_VALUE("--cdrom")) 478 469 { 479 470 enmOptType = OptType_VMRunner; 480 /** @todo r=bird: this isn't correct. Must use QString instead of QUuid to store this! */ 481 ASSIGN_OPT_VALUE_TO_QUUID(m_uDvdImage); 471 ASSIGN_OPT_VALUE_TO_QSTRING(m_strDvdImage); 482 472 } 483 473 /* VMM Options: */ … … 574 564 #undef MATCH_OPT_WITH_VALUE 575 565 #undef ASSIGN_OPT_VALUE_TO_QSTRING 576 #undef ASSIGN_OPT_VALUE_TO_QUUID577 566 578 567 if (uiType() == UIType_RuntimeUI && startVM) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r105546 r105548 178 178 179 179 /** Returns the --fda option value (whether we have floppy image). */ 180 bool hasFloppyImageToMount() const { return !m_ uFloppyImage.isNull(); }180 bool hasFloppyImageToMount() const { return !m_strFloppyImage.isEmpty(); } 181 181 /** Returns the --dvd | --cdrom option value (whether we have DVD image). */ 182 bool hasDvdImageToMount() const { return !m_ uDvdImage.isNull(); }182 bool hasDvdImageToMount() const { return !m_strDvdImage.isEmpty(); } 183 183 /** Returns floppy image name. */ 184 Q Uuid getFloppyImage() const { return m_uFloppyImage; }184 QString getFloppyImage() const { return m_strFloppyImage; } 185 185 /** Returns DVD image name. */ 186 Q Uuid getDvdImage() const { return m_uDvdImage; }186 QString getDvdImage() const { return m_strDvdImage; } 187 187 188 188 /** Returns the --execute-all-in-iem option value. */ … … 414 414 415 415 /** Holds the --fda option value (floppy image). */ 416 Q Uuid m_uFloppyImage;416 QString m_strFloppyImage; 417 417 /** Holds the --dvd | --cdrom option value (DVD image). */ 418 Q Uuid m_uDvdImage;418 QString m_strDvdImage; 419 419 420 420 /** Holds the --execute-all-in-iem option value. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r105266 r105548 176 176 /* Apply ad-hoc reconfigurations from the command line: */ 177 177 if (uiCommon().hasFloppyImageToMount()) 178 mountAdHocImage(KDeviceType_Floppy, UIMediumDeviceType_Floppy, uiCommon().getFloppyImage() .toString());178 mountAdHocImage(KDeviceType_Floppy, UIMediumDeviceType_Floppy, uiCommon().getFloppyImage()); 179 179 if (uiCommon().hasDvdImageToMount()) 180 mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, uiCommon().getDvdImage() .toString());180 mountAdHocImage(KDeviceType_DVD, UIMediumDeviceType_DVD, uiCommon().getDvdImage()); 181 181 182 182 /* Power UP if this is NOT separate process: */
Note:
See TracChangeset
for help on using the changeset viewer.

