Changeset 102474 in vbox
- Timestamp:
- Dec 5, 2023 1:16:47 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160617
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r102363 r102474 1640 1640 break; 1641 1641 case UIMediumDeviceType_DVD: 1642 UIVisoCreatorDialog::createViso(pActionPool, pParent, strDefaultFolder, strMachineName);1642 uMediumId = UIVisoCreatorDialog::createViso(pActionPool, pParent, strDefaultFolder, strMachineName); 1643 1643 break; 1644 1644 case UIMediumDeviceType_Floppy: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r102446 r102474 878 878 879 879 /* static */ 880 void UIVisoCreatorDialog::createViso(UIActionPool *pActionPool, QWidget *pParent,881 const QString &strDefaultFolder /* = QString() */,882 const QString &strMachineName /* = QString() */)880 QUuid UIVisoCreatorDialog::createViso(UIActionPool *pActionPool, QWidget *pParent, 881 const QString &strDefaultFolder /* = QString() */, 882 const QString &strMachineName /* = QString() */) 883 883 { 884 884 QString strVisoSaveFolder(strDefaultFolder); … … 889 889 UIVisoCreatorDialog *pVisoCreator = new UIVisoCreatorDialog(pActionPool, pDialogParent, 890 890 strVisoSaveFolder, strMachineName); 891 AssertPtrReturn Void(pVisoCreator);891 AssertPtrReturn(pVisoCreator, QUuid()); 892 892 893 893 windowManager().registerNewParent(pVisoCreator, pDialogParent); 894 894 pVisoCreator->setCurrentPath(gEDataManager->visoCreatorRecentFolder()); 895 895 QUuid mediumId; 896 896 if (pVisoCreator->exec(false /* not application modal */)) 897 897 { 898 898 if (pVisoCreator->saveVISOFile()) 899 { 900 QString strFilePath = pVisoCreator->visoFileFullPath(); 899 901 gEDataManager->setVISOCreatorRecentFolder(pVisoCreator->currentPath()); 902 mediumId = uiCommon().openMedium(UIMediumDeviceType_DVD, strFilePath); 903 } 900 904 } 901 905 902 906 delete pVisoCreator; 903 return ;907 return mediumId; 904 908 } 905 909 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.h
r102404 r102474 188 188 * @param pParent Passes the dialog parent. 189 189 * @param strDefaultFolder Passes the folder to save the VISO file. 190 * @param strMachineName Passes the name of the machine. */ 191 static void createViso(UIActionPool *pActionPool, QWidget *pParent, 192 const QString &strDefaultFolder = QString(), 193 const QString &strMachineName = QString()); 190 * @param strMachineName Passes the name of the machine. 191 * returns QUuid of the opened medium when successful. */ 192 static QUuid createViso(UIActionPool *pActionPool, QWidget *pParent, 193 const QString &strDefaultFolder = QString(), 194 const QString &strMachineName = QString()); 194 195 195 196 protected:
Note:
See TracChangeset
for help on using the changeset viewer.