Open a file open or save dialog, change the view, hit the cancel button, then open it again.
Note: this patch does //not// fix the case of the view not being saved when closing the dialog via the {key Escape} key or the titlebar close button; those cases need to be separately handled in the QPA theme plugin, which actually creates the dialog window.