Fixed crashing save dialogs under Qt5