VirtualBox

Ignore:
Timestamp:
Oct 19, 2022 2:32:55 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154215
Message:

FE/Qt: bugref:10309. Passing parent window to the native file selector since not doing so renders it useless under plasma.

File:
1 edited

Legend:

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

    r96407 r97237  
    243243    {
    244244        case UIEmptyFilePathSelector::Mode_File_Open:
    245             path = QIFileDialog::getOpenFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); break;
     245            path = QIFileDialog::getOpenFileName (initDir, mFileFilters, window(), mFileDialogTitle); break;
    246246        case UIEmptyFilePathSelector::Mode_File_Save:
    247247        {
    248             path = QIFileDialog::getSaveFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle);
     248            path = QIFileDialog::getSaveFileName (initDir, mFileFilters, window(), mFileDialogTitle);
    249249            if (!path.isEmpty() && QFileInfo (path).suffix().isEmpty())
    250250                path = QString ("%1.%2").arg (path).arg (mDefaultSaveExt);
     
    252252        }
    253253        case UIEmptyFilePathSelector::Mode_Folder:
    254             path = QIFileDialog::getExistingDirectory (initDir, parentWidget(), mFileDialogTitle); break;
     254            path = QIFileDialog::getExistingDirectory (initDir, window(), mFileDialogTitle); break;
    255255    }
    256256    if (path.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.

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