diff options
| author | David Faure <[email protected]> | 2016-06-25 16:39:49 +0200 |
|---|---|---|
| committer | David Faure <[email protected]> | 2016-06-25 16:40:18 +0200 |
| commit | e615bfaed4cd562d31ea0506529f730c414b6ec0 (patch) | |
| tree | e83924de3e0a12c63f13fccf8f04bfcc39a1dd34 /src/panels/places/placesitem.cpp | |
| parent | 6bb62f17b525baf89e7f35f4f3a321876c3a31ab (diff) | |
add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + fix compilation
This fixes some URLs built from local paths without scheme.
Diffstat (limited to 'src/panels/places/placesitem.cpp')
| -rw-r--r-- | src/panels/places/placesitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index a04064d0b..b32f8204d 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -276,12 +276,12 @@ void PlacesItem::initializeDevice(const QString& udi) Solid::Block *block = m_device.as<Solid::Block>(); if (block) { const QString device = block->device(); - setUrl(QStringLiteral("audiocd:/?device=%1").arg(device)); + setUrl(QUrl(QStringLiteral("audiocd:/?device=%1").arg(device))); } else { - setUrl(QStringLiteral("audiocd:/")); + setUrl(QUrl(QStringLiteral("audiocd:/"))); } } else if (m_mtp) { - setUrl(QStringLiteral("mtp:udi=%1").arg(m_device.udi())); + setUrl(QUrl(QStringLiteral("mtp:udi=%1").arg(m_device.udi()))); } } |
