1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

StatusBarMessage: Don't show for inactive windows

This commit is contained in:
David Rosca 2017-03-18 17:22:21 +01:00
parent 076deb7cdd
commit 9683f0f295

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2015 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -119,11 +119,7 @@ void StatusBarMessage::showMessage(const QString &message)
const static QChar LRE(0x202a);
m_window->statusBar()->showMessage(message.isRightToLeft() ? message : (LRE + message));
}
#ifdef Q_OS_WIN
else if (mApp->activeWindow() == m_window) {
#else
else {
#endif
WebView* view = m_window->weView();
const int verticalScrollSize = view->scrollBarGeometry(Qt::Vertical).width();;