From def86ac998654fe2d2b4c5b7f00a3429782fb221 Mon Sep 17 00:00:00 2001 From: doitux Date: Sat, 5 Nov 2011 21:48:06 +0000 Subject: [PATCH] move textBrowser_Log->clear(); to gametableimpl::hide() --- src/gui/qt/gametable/gametableimpl.cpp | 13 +++++++------ src/gui/qt/gametable/gametableimpl.h | 2 ++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 32df22b3..b27e691e 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -3137,9 +3137,6 @@ void gameTableImpl::localGameModification() //Set the playing mode to "manual" radioButton_manualAction->click(); - //clear log - textBrowser_Log->clear(); - //restore saved windows geometry restoreGameTableGeometry(); @@ -3181,9 +3178,6 @@ void gameTableImpl::networkGameModification() //Set the playing mode to "manual" radioButton_manualAction->click(); - //clear log - textBrowser_Log->clear(); - //restore saved windows geometry restoreGameTableGeometry(); @@ -3804,3 +3798,10 @@ void gameTableImpl::closeMessageBoxes() myUniversalMessageDialog->close(); } + +void gameTableImpl::hide() +{ + //clear log + textBrowser_Log->clear(); + QWidget::hide(); +} diff --git a/src/gui/qt/gametable/gametableimpl.h b/src/gui/qt/gametable/gametableimpl.h index 267225b7..3905c2b9 100755 --- a/src/gui/qt/gametable/gametableimpl.h +++ b/src/gui/qt/gametable/gametableimpl.h @@ -328,6 +328,8 @@ public slots: void showWarningAutoFoldInRankingGame(unsigned); void closeMessageBoxes(); + void hide(); + private: boost::shared_ptr myServerGuiInterface;