Bookmarks ToolBar refresh fix (#2594)

remotes/origin/Falkon/3.0
Anmol Gautam 8 years ago committed by David Rosca
parent a77ea28ac7
commit d9638d41be
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
  1. 5
      src/lib/bookmarks/bookmarkstoolbar.cpp
  2. 2
      src/lib/bookmarks/bookmarkstoolbar.h

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

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

Loading…
Cancel
Save