summaryrefslogtreecommitdiff
path: root/quacker/simviewer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/simviewer.cpp')
-rw-r--r--quacker/simviewer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/quacker/simviewer.cpp b/quacker/simviewer.cpp
index 359dc4a..ab82382 100644
--- a/quacker/simviewer.cpp
+++ b/quacker/simviewer.cpp
@@ -37,7 +37,7 @@ SimViewer::SimViewer(QWidget *parent)
QPushButton *closeButton = new QPushButton(tr("&Close"));
closeButton->setDefault(true);
- connect(closeButton, SIGNAL(clicked()), this, SLOT(done()));
+ connect(closeButton, SIGNAL(clicked()), this, SLOT(accept()));
QHBoxLayout *buttonLayout = new QHBoxLayout;
buttonLayout->addStretch(1);
@@ -57,11 +57,6 @@ void SimViewer::setSimulator(const Quackle::Simulator &simulator)
setWindowTitle(tr("%1 iterations of %2 - Quackle").arg(simulator.iterations()).arg(QuackleIO::Util::letterStringToQString(simulator.currentPosition().currentPlayer().rack().tiles())));
}
-void SimViewer::done()
-{
- accept();
-}
-
/////////////
AveragesTab::AveragesTab(QWidget *parent)