mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-08 14:34:53 -05:00
Bitcoin-Qt: update for BitcoinGUI::eventFilter()
- this allows us to use the progressbar and the label independently (if needed) and still prevents setStatusTip() to use them, if one of the 2 is active
This commit is contained in:
parent
ab806a69a2
commit
35ed704d44
1 changed files with 1 additions and 1 deletions
|
@ -751,7 +751,7 @@ bool BitcoinGUI::eventFilter(QObject *object, QEvent *event)
|
||||||
if (event->type() == QEvent::StatusTip)
|
if (event->type() == QEvent::StatusTip)
|
||||||
{
|
{
|
||||||
// Prevent adding text from setStatusTip(), if we currently use the status bar for displaying other stuff
|
// Prevent adding text from setStatusTip(), if we currently use the status bar for displaying other stuff
|
||||||
if (progressBarLabel->isVisible() && progressBar->isVisible())
|
if (progressBarLabel->isVisible() || progressBar->isVisible())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return QMainWindow::eventFilter(object, event);
|
return QMainWindow::eventFilter(object, event);
|
||||||
|
|
Loading…
Add table
Reference in a new issue