removed tab system temporarily until we fix it

This commit is contained in:
csoler 2020-06-22 23:52:59 +02:00
parent d0a373c14f
commit 1c2e094f20
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -432,12 +432,14 @@ void GxsGroupFrameDialog::groupTreeCustomPopupMenu(QPoint point)
QMenu contextMnu(this); QMenu contextMnu(this);
QAction *action; QAction *action;
#ifdef TODO
if (mMessageWidget) { if (mMessageWidget) {
action = contextMnu.addAction(QIcon(IMAGE_TABNEW), tr("Open in new tab"), this, SLOT(openInNewTab())); action = contextMnu.addAction(QIcon(IMAGE_TABNEW), tr("Open in new tab"), this, SLOT(openInNewTab()));
if (mGroupId.isNull() || messageWidget(mGroupId, true)) { if (mGroupId.isNull() || messageWidget(mGroupId, true)) {
action->setEnabled(false); action->setEnabled(false);
} }
} }
#endif
if (isSubscribed) { if (isSubscribed) {
action = contextMnu.addAction(QIcon(IMAGE_UNSUBSCRIBE), tr("Unsubscribe"), this, SLOT(unsubscribeGroup())); action = contextMnu.addAction(QIcon(IMAGE_UNSUBSCRIBE), tr("Unsubscribe"), this, SLOT(unsubscribeGroup()));
@ -839,8 +841,10 @@ void GxsGroupFrameDialog::changedCurrentGroup(const QString &groupId)
/* search exisiting tab */ /* search exisiting tab */
GxsMessageFrameWidget *msgWidget = messageWidget(mGroupId, true); GxsMessageFrameWidget *msgWidget = messageWidget(mGroupId, true);
if (!msgWidget) { if (!msgWidget)
if (mMessageWidget) { {
if (mMessageWidget)
{
/* not found, use standard tab */ /* not found, use standard tab */
msgWidget = mMessageWidget; msgWidget = mMessageWidget;
msgWidget->setGroupId(mGroupId); msgWidget->setGroupId(mGroupId);