Changeset 77264 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 11, 2019 2:29:48 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128772
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r77263 r77264 2688 2688 2689 2689 2690 QUuid VBoxGlobal::createVisoMediumWithVisoCreator(QWidget *pParent, const QString &str MachineName, const QString &strFolder)2690 QUuid VBoxGlobal::createVisoMediumWithVisoCreator(QWidget *pParent, const QString &strFolder, const QString &strMachineName /* = QString */) 2691 2691 { 2692 2692 QWidget *pDialogParent = windowManager().realParentWindow(pParent); … … 3049 3049 uMediumID = openMediumWithFileOpenDialog(target.mediumType, windowManager().mainWindowShown(), strMachineFolder); 3050 3050 else if(target.type == UIMediumTarget::UIMediumTargetType_CreateAdHocVISO) 3051 uMediumID = createVisoMediumWithVisoCreator(windowManager().mainWindowShown(), comConstMachine.GetName(), strMachineFolder);3051 uMediumID = createVisoMediumWithVisoCreator(windowManager().mainWindowShown(), strMachineFolder, comConstMachine.GetName()); 3052 3052 3053 3053 else if(target.type == UIMediumTarget::UIMediumTargetType_CreateFloppyDisk) -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r77238 r77264 504 504 /** Creates a VISO by using the VISO creator dialog. 505 505 * @param pParent Brings the dialog parent. 506 * @param str MachineName Passes the name of the machine,507 * @param str Folder Brings the folder to save the VISO file.*/508 QUuid createVisoMediumWithVisoCreator(QWidget *pParent, const QString &str MachineName, const QString &strFolder);506 * @param strFolder Brings the folder to save the VISO file. 507 * @param strMachineName Passes the name of the machine, */ 508 QUuid createVisoMediumWithVisoCreator(QWidget *pParent, const QString &strFolder, const QString &strMachineName = QString()); 509 509 510 510 /** Creates and shows a dialog thru which user can create a new floppy disk a VISO using the file-open dialog. -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp
r77255 r77264 455 455 break; 456 456 case UIMediumDeviceType_DVD: 457 uMediumId = vboxGlobal().createVisoMediumWithVisoCreator(this, m_strMachine Name, m_strMachineFolder);457 uMediumId = vboxGlobal().createVisoMediumWithVisoCreator(this, m_strMachineFolder, m_strMachineName); 458 458 break; 459 459 default: -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r77166 r77264 52 52 , m_pConfigurationPanel(0) 53 53 { 54 m_visoOptions.m_strVisoName = strMachineName;54 m_visoOptions.m_strVisoName = !strMachineName.isEmpty() ? strMachineName : "ad-hoc"; 55 55 prepareActions(); 56 56 prepareObjects(); … … 96 96 void UIVisoCreator::retranslateUi() 97 97 { 98 setWindowTitle(QString("%1 - %2").arg(m_strMachineName).arg(tr("VISO Creator"))); 98 if (!m_strMachineName.isEmpty()) 99 setWindowTitle(QString("%1 - %2").arg(m_strMachineName).arg(tr("VISO Creator"))); 100 else 101 setWindowTitle(QString("%1").arg(tr("VISO Creator"))); 99 102 if (m_pActionConfiguration) 100 103 {
Note:
See TracChangeset
for help on using the changeset viewer.