diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-10-18 16:56:55 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-10-18 16:56:55 +0000 |
| commit | 1c447596716a76c0279fe160f0703be9dea7b060 (patch) | |
| tree | 6ce79c12c4d1792fe7d8a93d78a074199406c185 /src/plugins/General | |
| parent | a85ab7165a0183696bc03caaefa0c46cb1e639f9 (diff) | |
| download | qmmp-1c447596716a76c0279fe160f0703be9dea7b060.tar.gz qmmp-1c447596716a76c0279fe160f0703be9dea7b060.tar.bz2 qmmp-1c447596716a76c0279fe160f0703be9dea7b060.zip | |
Udisks plugin: fixed cd audio detection
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1946 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
| -rw-r--r-- | src/plugins/General/udisks/udisksplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/udisks/udisksplugin.cpp b/src/plugins/General/udisks/udisksplugin.cpp index 1a1b8d41b..75b2a25bb 100644 --- a/src/plugins/General/udisks/udisksplugin.cpp +++ b/src/plugins/General/udisks/udisksplugin.cpp @@ -138,7 +138,7 @@ void UDisksPlugin::updateActions() QString dev_path; if (device->property("DeviceIsOpticalDisc").toBool() && device->property("OpticalDiscNumAudioTracks").toInt()) //cd audio - dev_path = "cdda://" + device->property("block.device").toString(); + dev_path = "cdda://" + device->property("DeviceFile").toString(); else if (device->property("DeviceIsMounted").toBool()) //mounted volume dev_path = device->property("DeviceMountPaths").toStringList()[0]; else @@ -206,7 +206,7 @@ UDisksDevice *UDisksPlugin::findDevice(QAction *action) if (device->property("DeviceIsOpticalDisc").toBool() && device->property("OpticalDiscNumAudioTracks").toInt()) { - dev_path = "cdda://" + device->property("DeviceFile").toString(); + dev_path = "cdda://" + device->property("DeviceFile").toString(); if (dev_path == action->data().toString()) return device; } |
