diff options
| author | Lukáš Tinkl <[email protected]> | 2014-11-03 18:25:19 +0100 |
|---|---|---|
| committer | Lukáš Tinkl <[email protected]> | 2014-11-03 18:25:19 +0100 |
| commit | b96def1856bfd043ba7dae56368ceed6940bd6c4 (patch) | |
| tree | b451d3cfe34097bd8e364abe9d0b350fca62fe10 /src/panels/places/placesitemmodel.cpp | |
| parent | 7a3310ce73fd08177d5bd67ab7a612e5bde674c6 (diff) | |
use QUrl::fromLocalFile() on devices
fixes being unable to access eg. removable drives
Diffstat (limited to 'src/panels/places/placesitemmodel.cpp')
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 8e6494919..057a8b2d7 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -657,7 +657,7 @@ void PlacesItemModel::updateBookmarks() found = true; if (newBookmark.metaDataItem("UDI").isEmpty()) { item->setBookmark(newBookmark); - item->setText(i18nc("KFile System Bookmarks", newBookmark.text().toUtf8().data())); + item->setText(i18nc("KFile System Bookmarks", newBookmark.text().toUtf8().constData())); } break; } @@ -764,7 +764,7 @@ void PlacesItemModel::loadBookmarks() // text, the retranslation will fail and the users custom text is still used. // It is important to use "KFile System Bookmarks" as context (see // createSystemBookmarks()). - item->setText(i18nc("KFile System Bookmarks", bookmark.text().toUtf8().data())); + item->setText(i18nc("KFile System Bookmarks", bookmark.text().toUtf8().constData())); item->setSystemItem(true); } |
