diff --git a/retroshare-gui/src/gui/Posted/PostedItem.cpp b/retroshare-gui/src/gui/Posted/PostedItem.cpp index 6f9bc1cc3..4b9a0c91c 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.cpp +++ b/retroshare-gui/src/gui/Posted/PostedItem.cpp @@ -35,6 +35,7 @@ #include "gui/MainWindow.h" #include "gui/Identity/IdDialog.h" #include "PhotoView.h" +#include "gui/Posted/PostedDialog.h" #include "ui_PostedItem.h" #include @@ -266,14 +267,14 @@ void BasePostedItem::loadComments() if (mFeedHolder) { - QString title = QString::fromUtf8(mPost.mMeta.mMsgName.c_str()); + /* window will destroy itself! */ + PostedDialog *postedDialog = dynamic_cast(MainWindow::getPage(MainWindow::Posted)); -#warning (csoler) Posted item versions not handled yet. When it is the case, start here. + if (!postedDialog) + return ; - QVector post_versions ; - post_versions.push_back(mPost.mMeta.mMsgId) ; - - mFeedHolder->openComments(0, mPost.mMeta.mGroupId, post_versions,mPost.mMeta.mMsgId, title); + MainWindow::showWindow(MainWindow::Posted); + postedDialog->navigate(mPost.mMeta.mGroupId, mPost.mMeta.mMsgId) ; } } void BasePostedItem::readToggled(bool checked) @@ -740,4 +741,5 @@ void PostedItem::toggleNotes() ui->frame_notes->hide(); } + emit sizeChanged(this); } diff --git a/retroshare-gui/src/gui/Posted/PostedItem.ui b/retroshare-gui/src/gui/Posted/PostedItem.ui index f7c69008f..4c011c121 100644 --- a/retroshare-gui/src/gui/Posted/PostedItem.ui +++ b/retroshare-gui/src/gui/Posted/PostedItem.ui @@ -611,6 +611,9 @@ 600 + + true + QFrame::StyledPanel @@ -662,6 +665,9 @@ + + true + QFrame::Box @@ -686,6 +692,9 @@ + + false +