From c3f8af66e5f727952364ff409e9cbed609300533 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Thu, 22 Apr 2010 13:16:40 +0000 Subject: [PATCH] forgot to add back qtimer after experimenting with deriving rsAutoupdatepage git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2752 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/MessengerWindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/retroshare-gui/src/gui/MessengerWindow.cpp b/retroshare-gui/src/gui/MessengerWindow.cpp index 0d4f9a922..05ab54ac5 100644 --- a/retroshare-gui/src/gui/MessengerWindow.cpp +++ b/retroshare-gui/src/gui/MessengerWindow.cpp @@ -115,6 +115,11 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags) connect(ui.messagelineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(savestatusmessage())); + QTimer *timer = new QTimer(this); + timer->connect(timer, SIGNAL(timeout()), this, SLOT(savestatus())); + timer->start(1000); /* one second */ + + /* to hide the header */ ui.messengertreeWidget->header()->hide(); @@ -471,9 +476,9 @@ void MessengerWindow::insertPeers() if((it->id == *cont_it) && (rsPeers->isOnline(*cont_it))){ - std::string status; - rsStatus->getStatusString(it->status, status); - gpg_item -> setText(1, QString::fromStdString(status)); + std::string status; + rsStatus->getStatusString(it->status, status); + gpg_item -> setText(1, QString::fromStdString(status)); unsigned char *data = NULL; int size = 0 ;