diff options
| author | Christoph Feck <[email protected]> | 2013-08-20 12:21:44 +0200 |
|---|---|---|
| committer | Christoph Feck <[email protected]> | 2013-08-20 12:21:44 +0200 |
| commit | 5db3bdb9f4a85a75ec65e52b90ae25555df4a93b (patch) | |
| tree | 2890cda75cfd9a2dc1c99e1e34219a9330355a5f /src | |
| parent | 55bf917361f6b564c0b2fa84f748e1728d8e73b2 (diff) | |
| parent | 078ebd53e12e04e43a98751b7d3ad1122c22c853 (diff) | |
Merge remote-tracking branch 'origin/KDE/4.11'
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/places/placesitem.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index 5723b80a2..76b51e3aa 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -270,8 +270,13 @@ void PlacesItem::initializeDevice(const QString& udi) QObject::connect(m_access, SIGNAL(accessibilityChanged(bool,QString)), m_signalHandler, SLOT(onAccessibilityChanged())); } else if (m_disc && (m_disc->availableContent() & Solid::OpticalDisc::Audio) != 0) { - const QString device = m_device.as<Solid::Block>()->device(); - setUrl(QString("audiocd:/?device=%1").arg(device)); + Solid::Block *block = m_device.as<Solid::Block>(); + if (block) { + const QString device = block->device(); + setUrl(QString("audiocd:/?device=%1").arg(device)); + } else { + setUrl(QString("audiocd:/")); + } } else if (m_mtp) { setUrl(QString("mtp:udi=%1").arg(m_device.udi())); } |
