From 56722c3da6b606ca8d368bb1b8348cc9eea3aae7 Mon Sep 17 00:00:00 2001 From: doitux Date: Fri, 12 Oct 2007 19:22:08 +0000 Subject: [PATCH] integrating chattools in mainwindow chat bugfix --- src/gui/qt/chattools/chattools.cpp | 2 -- src/gui/qt/mainwindow/mainwindowimpl.cpp | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/qt/chattools/chattools.cpp b/src/gui/qt/chattools/chattools.cpp index fbf60ac3..396640aa 100644 --- a/src/gui/qt/chattools/chattools.cpp +++ b/src/gui/qt/chattools/chattools.cpp @@ -104,8 +104,6 @@ void ChatTools::nickAutoCompletition() { if(nickAutoCompletitionCounter == lastMatchStringList.size()) nickAutoCompletitionCounter = 0; - cout << nickAutoCompletitionCounter << endl; - // cout << nickAutoCompletitionCounter << "\n"; if(lastChatString == "") diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 95230b26..b8f8892d 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -1355,10 +1355,9 @@ void mainWindowImpl::refreshPlayerName() { QStringList mainWindowImpl::getPlayerNicksList() { QStringList list; - HandInterface *currentHand = mySession->getCurrentGame()->getCurrentHand(); PlayerListConstIterator it_c; - for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { + for (it_c=mySession->getCurrentGame()->getSeatsList()->begin(); it_c!=mySession->getCurrentGame()->getSeatsList()->end(); it_c++) { list << QString::fromUtf8((*it_c)->getMyName().c_str()); }