VirtualBox

Changeset 88551 in vbox


Ignore:
Timestamp:
Apr 15, 2021 5:04:23 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Passing the parent window to file selector instead of the parent widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.cpp

    r88446 r88551  
    408408    {
    409409        case Mode_File_Open:
    410             strSelPath = QIFileDialog::getOpenFileName(strInitPath, m_strFileDialogFilters, parentWidget(), m_strFileDialogTitle); break;
     410            strSelPath = QIFileDialog::getOpenFileName(strInitPath, m_strFileDialogFilters, window(), m_strFileDialogTitle); break;
    411411        case Mode_File_Save:
    412412        {
    413             strSelPath = QIFileDialog::getSaveFileName(strInitPath, m_strFileDialogFilters, parentWidget(), m_strFileDialogTitle);
     413            strSelPath = QIFileDialog::getSaveFileName(strInitPath, m_strFileDialogFilters, window(), m_strFileDialogTitle);
    414414            if (!strSelPath.isEmpty() && QFileInfo(strSelPath).suffix().isEmpty())
    415415            {
     
    422422        }
    423423        case Mode_Folder:
    424             strSelPath = QIFileDialog::getExistingDirectory(strInitPath, parentWidget(), m_strFileDialogTitle); break;
     424            strSelPath = QIFileDialog::getExistingDirectory(strInitPath, window(), m_strFileDialogTitle); break;
    425425    }
    426426
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