aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/General/statusicon/qmmptrayicon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/General/statusicon/qmmptrayicon.cpp b/src/plugins/General/statusicon/qmmptrayicon.cpp
index 1d8605af5..21038749e 100644
--- a/src/plugins/General/statusicon/qmmptrayicon.cpp
+++ b/src/plugins/General/statusicon/qmmptrayicon.cpp
@@ -50,7 +50,7 @@ void QmmpTrayIcon::wheelEvent(QWheelEvent *e)
{
SoundCore *core = SoundCore::instance();
int volume = qMax(core->leftVolume(), core->rightVolume());
- int balance = (core->rightVolume() - core->leftVolume()) * 100 / volume;
+ int balance = volume ? (core->rightVolume() - core->leftVolume()) * 100 / volume : volume;
volume += e->delta()/20;
volume = qMax(volume,0);
volume = qMin(volume,100);