diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-22 16:18:55 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-23 23:17:06 +0200 |
commit | e42ccdad0bae65bdd0e20904df56decb7e93c314 (patch) | |
tree | 338880559705a95fab51ea29134f88f3669b933d /src/core | |
parent | 4ff62aec5727ea8f0ae8e9771dc72d977df98d70 (diff) |
Fix recentlyAudible signal
It is now emitted with a different enum flag value.
Fixes: QTBUG-85118
Change-Id: Ic3e4807d451a0a53bda17e0b8d43d906cb315fc9
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/web_contents_delegate_qt.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/web_contents_delegate_qt.cpp b/src/core/web_contents_delegate_qt.cpp index 63f52433e..54ae4937a 100644 --- a/src/core/web_contents_delegate_qt.cpp +++ b/src/core/web_contents_delegate_qt.cpp @@ -205,12 +205,9 @@ void WebContentsDelegateQt::NavigationStateChanged(content::WebContents* source, } } - // NavigationStateChanged gets called with INVALIDATE_TYPE_TAB by AudioStateProvider::Notify, - // whenever an audio sound gets played or stopped, this is the only way to actually figure out - // if there was a recently played audio sound. // Make sure to only emit the signal when loading isn't in progress, because it causes multiple // false signals to be emitted. - if ((changed_flags & content::INVALIDATE_TYPE_TAB) && !(changed_flags & content::INVALIDATE_TYPE_LOAD)) { + if ((changed_flags & content::INVALIDATE_TYPE_AUDIO) && !(changed_flags & content::INVALIDATE_TYPE_LOAD)) { m_viewClient->recentlyAudibleChanged(source->IsCurrentlyAudible()); } } |