Update gamemasterdialog.cpp

Enable qt4 and qt5 compilation