DevHeads.net

frameworkintegration QFileDialog bug

Hey all,

We have a strange bug in frameworkintegration
<a href="https://bugs.kde.org/show_bug.cgi?id=334963" title="https://bugs.kde.org/show_bug.cgi?id=334963">https://bugs.kde.org/show_bug.cgi?id=334963</a> which really ought to get a
solution sooner than later. People using the latest and greatest packages
are hitting the issue <a href="https://bugs.kde.org/show_bug.cgi?id=344586" title="https://bugs.kde.org/show_bug.cgi?id=344586">https://bugs.kde.org/show_bug.cgi?id=344586</a> and more
will if it doesn't get fixed. I've done a bit of testing and it boils down
to this.

In KDEFileDialogHelper show we need to call m_dialog->show() whether the
dialog is modal or not. Currently we are only calling it if the dialog is
not modal.
Doing the above makes QDialog static methods somehow not interactive, I'm
still not sure why. <a href="https://paste.kde.org/pdv7wlxpd" title="https://paste.kde.org/pdv7wlxpd">https://paste.kde.org/pdv7wlxpd</a> <-- here's a backtrace
of running the Qt 5 standarddialogs test and clicking on one of the file
dialog tests. Interestingly, a backtrace of standarddialogs working with
frameworkintegration as it is in git currently is exactly the same, and is
interactive. Somehow moving the m_dialog->show() out of the if makes the
exec() call not interactive anymore.

Anyone have any idea what's going on here?

thanks,
Jeremy