[Fix] Don't show instant popup when clicking on back/forward button.

remotes/origin/falkon
nowrep 13 years ago
parent 79c57f61b6
commit 93d22ec6fc
  1. 4
      CHANGELOG
  2. 9
      src/lib/tools/toolbutton.cpp

@ -1,3 +1,7 @@
Version 1.4.1
* not yet released
* fixed instantly showing popup when clicking on back/forward button
Version 1.4.0
* released 11 March 2013
* highlighting host in address in locationbar

@ -92,12 +92,19 @@ void ToolButton::setMultiIcon(const QPixmap &image)
void ToolButton::mousePressEvent(QMouseEvent* e)
{
if (e->button() != Qt::MiddleButton && menu()) {
if (e->button() == Qt::LeftButton && menu() && popupMode() == QToolButton::InstantPopup) {
setDown(true);
showMenu();
return;
}
if (e->button() == Qt::RightButton && menu()) {
setDown(true);
showMenu();
return;
}
if (e->button() == Qt::MiddleButton) {
setDown(true);
}

Loading…
Cancel
Save