Merge pull request #6799 from spycrab/qt_config_save Qt/MainWindow: Call Config::Save last before destruction