VirtualBox

Changeset 91719 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2021 11:56:22 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9974. Small fix.

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  
    151151        m_pBootImageSelector->setMode(UIFilePathSelector::Mode_File_Open);
    152152        m_pBootImageSelector->setFileDialogFilters("ISO Images(*.iso *.ISO)");
     153        m_pBootImageSelector->setResetEnabled(false);
    153154        m_pBootImageSelector->setInitialPath(uiCommon().defaultFolderPathForType(UIMediumDeviceType_DVD));
    154155        m_pBootImageSelector->setRecentMediaListType(UIMediumDeviceType_DVD);
     
    193194void UIBootFailureDialog::showEvent(QShowEvent *pEvent)
    194195{
    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     // else
    203     //     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 
    217196    if (m_pParent)
    218197        UIDesktopWidgetWatchdog::centerWidget(this, m_pParent, false);
    219198    QIWithRetranslateUI<QIMainDialog>::showEvent(pEvent);
     199
    220200}
    221201
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r91717 r91719  
    32633263void UIMachineLogic::showBootFailureDialog()
    32643264{
    3265     QWidget *pParent = windowManager().realParentWindow(activeMachineWindow());
    3266     UIBootFailureDialog *pBootFailureDialog = new UIBootFailureDialog(pParent, machine());
     3265    UIBootFailureDialog *pBootFailureDialog = new UIBootFailureDialog(activeMachineWindow(), machine());
    32673266    AssertPtrReturnVoid(pBootFailureDialog);
    32683267    connect(actionPool()->action(UIActionIndexRT_M_Machine_S_Reset), &UIAction::triggered,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette