Move fileDialog event catching out of click event cheking in SettingsWindow.cpp