From aa05348d5511d905475dea1903114d1b1dd675ce Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 11 Mar 2020 22:41:19 +0100 Subject: [PATCH] removed token queue from PostedCreatePostDialog --- retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp | 3 +-- retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h | 4 +--- retroshare-gui/src/gui/Posted/PostedListWidget.cpp | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp index ede58cdbc..fada00020 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.cpp @@ -28,7 +28,6 @@ #include "ui_PostedCreatePostDialog.h" #include "util/misc.h" -#include "util/TokenQueue.h" #include "util/RichTextEdit.h" #include "gui/feeds/SubFileItem.h" #include "util/rsdir.h" @@ -45,7 +44,7 @@ #define VIEW_IMAGE 2 #define VIEW_LINK 3 -PostedCreatePostDialog::PostedCreatePostDialog(TokenQueue* tokenQ, RsPosted *posted, const RsGxsGroupId& grpId, QWidget *parent): +PostedCreatePostDialog::PostedCreatePostDialog(RsPosted *posted, const RsGxsGroupId& grpId, QWidget *parent): QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint), mPosted(posted), mGrpId(grpId), ui(new Ui::PostedCreatePostDialog) diff --git a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h index f8c5c08cc..64ab35566 100644 --- a/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h +++ b/retroshare-gui/src/gui/Posted/PostedCreatePostDialog.h @@ -26,8 +26,6 @@ #include "retroshare/rsposted.h" #include "util/RichTextEdit.h" -class TokenQueue; - namespace Ui { class PostedCreatePostDialog; } @@ -41,7 +39,7 @@ public: * @param tokenQ parent callee token * @param posted */ - explicit PostedCreatePostDialog(TokenQueue* tokenQ, RsPosted* posted, const RsGxsGroupId& grpId, QWidget *parent = 0); + explicit PostedCreatePostDialog(RsPosted* posted, const RsGxsGroupId& grpId, QWidget *parent = 0); ~PostedCreatePostDialog(); private: diff --git a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp index 6d0c852a5..a35490028 100644 --- a/retroshare-gui/src/gui/Posted/PostedListWidget.cpp +++ b/retroshare-gui/src/gui/Posted/PostedListWidget.cpp @@ -250,7 +250,7 @@ void PostedListWidget::newPost() return; } - PostedCreatePostDialog *cp = new PostedCreatePostDialog(mTokenQueue, rsPosted, groupId(), this); + PostedCreatePostDialog *cp = new PostedCreatePostDialog(rsPosted, groupId(), this); cp->show(); /* window will destroy itself! */