close-button fix ONLY for macosx

This commit is contained in:
doitux
2007-12-04 01:37:43 +00:00
parent 006c12e5b6
commit a3152ba87e
14 changed files with 29 additions and 3 deletions
@@ -24,8 +24,10 @@
changeHumanPlayerNameDialogImpl::changeHumanPlayerNameDialogImpl(QWidget *parent, ConfigFile *config)
: QDialog(parent), myConfig(config)
{
#ifdef __APPLE__
setWindowModality(Qt::ApplicationModal);
setWindowFlags(Qt::WindowSystemMenuHint | Qt::CustomizeWindowHint | Qt::Dialog);
#endif
setupUi(this);
lineEdit->setText(QString::fromUtf8(myConfig->readConfigString("MyName").c_str()));