QFileDialog has by default an overwrite check, avoid the second one done by kate.
Related to D21401
cullmann |
Kate | |
Frameworks |
QFileDialog has by default an overwrite check, avoid the second one done by kate.
Related to D21401
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Is this correct in all cases? Do we support KIO here? Does that depend on platform integration, i.e. gnome or Windows?
That should work on every platform. In fact, it would be a bug if any platform didn't do it.
https://doc.qt.io/qt-5/qfiledialog.html#Option-enum
See QFileDialog::DontConfirmOverwrite.
As wm4 just pointed out on irc, this might need fallback code for older versions of KF, no? Currently Kate has KF5_DEP_VERSION 5.40, so you might either want to bump that min dep to match the version of ktexteditor which does the check itself, or add some (runtime/buildtime) check for the KF version.