Commit b4e74ad9 authored by René J.V. Bertin's avatar René J.V. Bertin

Try harder to set KUrlRequester save mode in the renderwidget.

Pre-5.33.0 KUrlRequester versions don't have setAcceptMode() but may
still expose their QFileDialog instance. This is especially important
on Mac when native file dialogs are being used because otherwise users
can only select the directory where to save instead of a full file path.
parent 1834b9a9
......@@ -298,6 +298,8 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, const
#if KXMLGUI_VERSION_MINOR > 32 || KXMLGUI_VERSION_MAJOR > 5
m_view.out_file->setAcceptMode(QFileDialog::AcceptSave);
#elif !defined(KIOWIDGETS_NO_DEPRECATED)
m_view.out_file->fileDialog()->setAcceptMode(QFileDialog::AcceptSave);
#endif
m_view.out_file->setFocusPolicy(Qt::ClickFocus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment