removed token queue from PostedCreatePostDialog

This commit is contained in:
csoler 2020-03-11 22:41:19 +01:00
parent dc3c3488df
commit aa05348d55
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
3 changed files with 3 additions and 6 deletions

View File

@ -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)

View File

@ -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:

View File

@ -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! */