Skip to content

Commit

Permalink
COMP: Fix deprecated use of QFileDialog::DirectoryOnly in ctkDICOMVis…
Browse files Browse the repository at this point in the history
…ualBrowserWidget

Apply fix similar to 724c154 ("COMP: Fix deprecated use of QFileDialog::DirectoryOnly
in ctkFileDialogTest1", 2023-06-14)
  • Loading branch information
jcfr committed Jan 12, 2024
1 parent 38536a0 commit dd2458e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libs/DICOM/Widgets/ctkDICOMVisualBrowserWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3031,7 +3031,8 @@ void ctkDICOMVisualBrowserWidget::exportSelectedItems(ctkDICOMModel::IndexType l

ctkFileDialog* directoryDialog = new ctkFileDialog();
directoryDialog->setOption(QFileDialog::ShowDirsOnly);
directoryDialog->setFileMode(QFileDialog::DirectoryOnly);
directoryDialog->setFileMode(QFileDialog::Directory);
directoryDialog->setOption(QFileDialog::ShowDirsOnly);
bool res = directoryDialog->exec();
if (!res)
{
Expand Down

0 comments on commit dd2458e

Please sign in to comment.