diff --git a/retroshare-gui/src/gui/BlogDialog.cpp b/retroshare-gui/src/gui/BlogDialog.cpp index 6ba8d454c..9517f8b89 100644 --- a/retroshare-gui/src/gui/BlogDialog.cpp +++ b/retroshare-gui/src/gui/BlogDialog.cpp @@ -43,12 +43,30 @@ BlogDialog::BlogDialog(QWidget *parent) void BlogDialog::sendBlog() { QString blogMsg = lineEdit->toPlainText(); + QString debug = "unsuccessful"; blogText->setCurrentFont(mCurrentFont); /* Write blog message to window */ blogText->append(blogMsg); + std::list UsrList; + + /* test to see if load dummy data worked ! */ + + QString blogMsg2; + + if(!rsQblog->getFriendList(UsrList)) + { + blogText->append(debug); // put error on screen if problem getting usr list + } + else + { + blogMsg2 = UsrList.begin()->c_str(); + blogText->append(blogMsg2); // past the first usr list to blog screen + } + + /* Clear lineEdit */ lineEdit->clear();