Commit addaf47d authored by Anthony Fieroni's avatar Anthony Fieroni

[loadview] Do not allow changing volume on scroll

Differential Revision: https://phabricator.kde.org/D17524Signed-off-by: Anthony Fieroni's avatarAnthony Fieroni <bvbfan@abv.bg>
parent e3aa6163
......@@ -258,6 +258,12 @@ void MainWindow::closeEvent (QCloseEvent *event)
void MainWindow::wheelEvent (QWheelEvent *event)
{
// do not allow to change volume in load view
// it can be frustrating in recently played list
if (m_mainView->currentWidget() == m_loadView) {
return;
}
if (event->delta() > 0)
engine()->increaseVolume();
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment