Don't crash when volume isn't available.

This commit is contained in:
Tobias Rundstrom 2006-03-25 14:06:37 -04:00
parent f4d010e59a
commit 0f06c83484

View file

@ -328,6 +328,11 @@ XMMSHandler::volume_changed (XMMSResult *res)
void
XMMSHandler::volume_get (XMMSResultDict *res)
{
if (res->isError()) {
qWarning ("couldn't get volume levels!");
return;
}
QHash<QString, QString> h (DictToQHash (res));
QList<QString> Values = h.values();
QListIterator<QString> vol (Values);