summaryrefslogtreecommitdiff
path: root/quacker/newgame.cpp
diff options
context:
space:
mode:
authorJohn Fultz <jfultz@wolfram.com>2014-08-12 01:45:48 -0500
committerJohn Fultz <jfultz@wolfram.com>2014-08-12 02:10:43 -0500
commit1e014de2255e9d790b55e5e26ed420df7e6a0790 (patch)
treea479951563ca64807ec0dd7e541b1a8945b4d730 /quacker/newgame.cpp
parentaa2b461be4cb045c770b52be71a728f8bc1e0dc1 (diff)
Compiler warnings.
Diffstat (limited to 'quacker/newgame.cpp')
-rw-r--r--quacker/newgame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/quacker/newgame.cpp b/quacker/newgame.cpp
index 97ef15d..c0de5f5 100644
--- a/quacker/newgame.cpp
+++ b/quacker/newgame.cpp
@@ -40,7 +40,7 @@ NewGameDialog::NewGameDialog(QWidget *parent)
QPushButton *okButton = new QPushButton(tr("&OK"));
QPushButton *cancelButton = new QPushButton(tr("&Cancel"));
- connect(okButton, SIGNAL(clicked()), this, SLOT(done()));
+ connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
QHBoxLayout *buttonLayout = new QHBoxLayout;
@@ -64,10 +64,10 @@ Quackle::PlayerList NewGameDialog::players() const
return m_playerTab->players();
}
-void NewGameDialog::done()
+void NewGameDialog::accept()
{
saveSettings();
- accept();
+ QDialog::accept();
}
void NewGameDialog::saveSettings()