summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index a9ff11e..9c23c58 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -124,6 +124,8 @@ void MainWindow::mouseDoubleClickEvent(QMouseEvent *)
{
if (m_Snake == nullptr) {
m_Snake = new Snake(this);
+ } else {
+ m_Snake->addSnake();
}
}