fix toolbar not showing when switching between artcle and feed list item

This commit is contained in:
Martin Rotter 2023-04-14 12:09:23 +02:00
parent 083173c8c4
commit 223ef3be61
1 changed files with 2 additions and 3 deletions

View File

@ -49,8 +49,7 @@ void MessagePreviewer::createConnections() {
MessagePreviewer::MessagePreviewer(QWidget* parent)
: QWidget(parent), m_mainLayout(new QGridLayout(this)), m_viewerLayout(new QStackedLayout()),
m_toolBar(new QToolBar(this)), m_msgBrowser(new WebBrowser(nullptr, this)), m_separator(nullptr),
m_btnLabels(QList<QPair<LabelButton*, QAction*>>()), m_itemDetails(new ItemDetails(this)),
m_toolbarVisible(m_toolBar->isVisible()) {
m_btnLabels(QList<QPair<LabelButton*, QAction*>>()), m_itemDetails(new ItemDetails(this)), m_toolbarVisible(true) {
m_toolBar->setOrientation(Qt::Orientation::Vertical);
// NOTE: To make sure that if we have many labels and short message
@ -109,7 +108,7 @@ void MessagePreviewer::clear() {
}
void MessagePreviewer::showItemDetails(RootItem* item) {
m_toolBar->setVisible(m_toolbarVisible);
m_toolBar->setVisible(false);
m_message = Message();
m_root = item;