summaryrefslogtreecommitdiffstats
path: root/knights/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2016-09-30 21:31:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-09-30 21:33:10 +0900
commit78cddf8e8b1ab472b35133f2f2a0207ed245275b (patch)
tree6d61ab25e86d9948ca8559eed3acf2676c06b371 /knights/main.cpp
parente8803aa7ae3f9196e21b21f491e3994fd7c333ba (diff)
downloadknights-78cddf8e8b1ab472b35133f2f2a0207ed245275b.tar.gz
knights-78cddf8e8b1ab472b35133f2f2a0207ed245275b.zip
Added user option to delete chess engine log files (game.### and log.###) from user home folder on exit.
This resolves bug 2665. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit febf3bbebfc048a068894f90d3a43d7fc6043aa3)
Diffstat (limited to 'knights/main.cpp')
-rw-r--r--knights/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/knights/main.cpp b/knights/main.cpp
index 0b60729..cc76045 100644
--- a/knights/main.cpp
+++ b/knights/main.cpp
@@ -81,5 +81,6 @@ int main(int argc, char *argv[])
/* Without this connection, the destructors are not called, and some
housecleaning ( like destroying child processes ) isn't done */
a.connect( &a, TQT_SIGNAL( shutDown () ), knights, TQT_SLOT( KillAll() ) );
+ a.connect( &a, SIGNAL( aboutToQuit() ), knights, SLOT( aboutToQuit() ) );
return a.exec();
}