Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.4, 4.8.0
-
2e220e4603d6a0c21efee3a884be76e9f2d7ebb7 (4.8), 9aa51821e446152517aa3022bcf7ebbcc7d3d888 (5.0)
Description
After hiding one of the columns in the detail view in QFileDialog then subsequent filedialogs will incorrectly show the hidden column as being visible in the header context menu.
With the following code:
#include <QtGui> int main( int argc, char *argv[] ) { QApplication app(argc, argv); QString selFil; QFileDialog::getOpenFileName(0, "Select file", QString(""), QString(""), &selFil, QFileDialog::DontUseNativeDialog); QFileDialog::getOpenFileName(0, "Select file", QString(""), QString(""), &selFil, QFileDialog::DontUseNativeDialog); return app.exec(); }
then start the application, right click on the header and note that all three entries are correctly ticked, click on one of them and the section is hidden. Then click cancel/ok and then right click on the header on the new instance and see that it shows as being ticked again even though the section is hidden.