1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Bookmarks ToolBar refresh fix (#2594)

This commit is contained in:
Anmol Gautam 2018-02-09 02:49:13 +05:30 committed by David Rosca
parent a77ea28ac7
commit d9638d41be
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 6 additions and 1 deletions

View File

@ -214,8 +214,11 @@ void BookmarksToolbar::addItem(BookmarkItem* item)
button->setShowOnlyText(m_bookmarks->showOnlyTextInToolbar());
m_layout->addWidget(button);
if (!m_fixedMinHeight) {
m_fixedMinHeight = true;
setMinimumHeight(minimumSizeHint().height());
}
}
BookmarksToolbarButton* BookmarksToolbar::buttonAt(const QPoint &pos)
{

View File

@ -65,6 +65,8 @@ private:
QTimer* m_updateTimer;
QAction* m_actShowOnlyIcons = nullptr;
QAction* m_actShowOnlyText = nullptr;
bool m_fixedMinHeight = false;
};
#endif // BOOKMARKSTOOLBAR_H