- Timestamp:
- Oct 14, 2021 11:56:22 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIBootFailureDialog.cpp
r91717 r91719 151 151 m_pBootImageSelector->setMode(UIFilePathSelector::Mode_File_Open); 152 152 m_pBootImageSelector->setFileDialogFilters("ISO Images(*.iso *.ISO)"); 153 m_pBootImageSelector->setResetEnabled(false); 153 154 m_pBootImageSelector->setInitialPath(uiCommon().defaultFolderPathForType(UIMediumDeviceType_DVD)); 154 155 m_pBootImageSelector->setRecentMediaListType(UIMediumDeviceType_DVD); … … 193 194 void UIBootFailureDialog::showEvent(QShowEvent *pEvent) 194 195 { 195 Q_UNUSED(pEvent);196 197 /* Try to determine the initial size: */198 // QSize proposedSize;199 // int iHostScreen = 0;200 // if (m_pParent)201 // iHostScreen = gpDesktop->screenNumber(m_pParent);202 // else203 // iHostScreen = gpDesktop->screenNumber(this);204 // if (iHostScreen >= 0 && iHostScreen < gpDesktop->screenCount())205 // {206 // /* On the basis of current host-screen geometry if possible: */207 // const QRect screenGeometry = gpDesktop->screenGeometry(iHostScreen);208 // if (screenGeometry.isValid())209 // proposedSize = screenGeometry.size() * 5 / 15;210 // }211 // /* Fallback to default size if we failed: */212 // if (proposedSize.isNull())213 // proposedSize = QSize(800, 600);214 // /* Resize to initial size: */215 // resize(proposedSize);216 217 196 if (m_pParent) 218 197 UIDesktopWidgetWatchdog::centerWidget(this, m_pParent, false); 219 198 QIWithRetranslateUI<QIMainDialog>::showEvent(pEvent); 199 220 200 } 221 201 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r91717 r91719 3263 3263 void UIMachineLogic::showBootFailureDialog() 3264 3264 { 3265 QWidget *pParent = windowManager().realParentWindow(activeMachineWindow()); 3266 UIBootFailureDialog *pBootFailureDialog = new UIBootFailureDialog(pParent, machine()); 3265 UIBootFailureDialog *pBootFailureDialog = new UIBootFailureDialog(activeMachineWindow(), machine()); 3267 3266 AssertPtrReturnVoid(pBootFailureDialog); 3268 3267 connect(actionPool()->action(UIActionIndexRT_M_Machine_S_Reset), &UIAction::triggered,
Note:
See TracChangeset
for help on using the changeset viewer.