Corrected setLogInfo core dump state.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1176 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-05-05 19:50:45 +00:00
parent 83b1fc5e1f
commit 6f59bd806b
3 changed files with 4 additions and 8 deletions

View File

@ -170,6 +170,7 @@ int main(int argc, char *argv[])
QObject::connect(notify,SIGNAL(configChanged()) ,w->messagesDialog ,SLOT(displayConfig() )) ;
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&)),w->peersDialog,SLOT(updatePeerStatusString(const QString&,const QString&)));
QObject::connect(notify,SIGNAL(logInfoChanged(const QString&)),w->networkDialog,SLOT(setLogInfo(QString))) ;
/* only show window, if not startMinimized */
if (!startMinimised)

View File

@ -274,15 +274,9 @@ void NotifyQt::UpdateGUI()
switch(type)
{
case RS_SYS_ERROR:
cDialog->setLogInfo(QString(logMesString.c_str()));
break;
case RS_SYS_WARNING:
cDialog->setLogInfo(QString(logMesString.c_str()));
break;
default:
case RS_SYS_INFO:
cDialog->setLogInfo(QString(logMesString.c_str()));
break;
case RS_SYS_INFO: emit logInfoChanged(QString(logMesString.c_str()));
default:;
}
}
}

View File

@ -68,6 +68,7 @@ class NotifyQt: public QObject, public NotifyBase
void neighborsChanged() const ;
void messagesChanged() const ;
void configChanged() const ;
void logInfoChanged(const QString&) const ;
void chatStatusChanged(const QString&,const QString&) const ;
#ifdef TURTLE_HOPPING
void gotTurtleSearchResult(qulonglong search_id,TurtleFileInfo file) const ;