Merge pull request #2205 from defnax/photoshare-fixes

photoshare compile fixes
This commit is contained in:
defnax 2021-01-05 22:27:03 +01:00 committed by GitHub
commit c184e7b7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,9 @@
#include "AlbumDialog.h"
#include "gui/gxs/GxsIdDetails.h"
#include "gui/common/FilesDefs.h"
#include "ui_AlbumDialog.h"
#include "retroshare/rsgxsflags.h"
AlbumDialog::AlbumDialog(const RsPhotoAlbum& album, TokenQueue* photoQueue, RsPhoto* rs_Photo, QWidget *parent) :

View File

@ -22,6 +22,7 @@
#include "AlbumGroupDialog.h"
#include "AlbumExtra.h"
#include "gui/gxs/GxsIdDetails.h"
#include "gui/common/FilesDefs.h"
#include <iostream>

View File

@ -20,6 +20,8 @@
#include "AlbumItem.h"
#include "ui_AlbumItem.h"
#include "gui/common/FilesDefs.h"
#include <iostream>
#include <QMouseEvent>

View File

@ -96,9 +96,10 @@ void PhotoDialog::toggleComments()
if (mCommentsCreated) {
ui->frame_comments->setVisible(true);
} else {
RsGxsId current_author;
// create CommentDialog.
RsGxsCommentService *commentService = dynamic_cast<RsGxsCommentService *>(mRsPhoto);
GxsCommentDialog *commentDialog = new GxsCommentDialog(this, mRsPhoto->getTokenService(), commentService);
GxsCommentDialog *commentDialog = new GxsCommentDialog(this,current_author, mRsPhoto->getTokenService(), commentService);
// TODO: Need to fetch all msg versions, otherwise - won't get all the comments.
// For the moment - use current msgid.

View File

@ -25,6 +25,7 @@
#include "PhotoItem.h"
#include "ui_PhotoItem.h"
#include "gui/common/FilesDefs.h"
PhotoItem::PhotoItem(PhotoShareItemHolder *holder, const RsPhotoPhoto &photo, QWidget *parent):
QWidget(parent),