mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Merge branch 'Applications/18.04'
This commit is contained in:
commit
a4f16761fc
|
@ -139,7 +139,7 @@ void PlacesItem::setBookmark(const KBookmark& bookmark)
|
||||||
const QString udi = bookmark.metaDataItem(QStringLiteral("UDI"));
|
const QString udi = bookmark.metaDataItem(QStringLiteral("UDI"));
|
||||||
if (udi.isEmpty()) {
|
if (udi.isEmpty()) {
|
||||||
setIcon(bookmark.icon());
|
setIcon(bookmark.icon());
|
||||||
setText(i18nc("KFile System Bookmarks", bookmark.text().toUtf8().constData()));
|
setText(i18ndc("kio5", "KFile System Bookmarks", bookmark.text().toUtf8().constData()));
|
||||||
setUrl(bookmark.url());
|
setUrl(bookmark.url());
|
||||||
setSystemItem(bookmark.metaDataItem(QStringLiteral("isSystemItem")) == QLatin1String("true"));
|
setSystemItem(bookmark.metaDataItem(QStringLiteral("isSystemItem")) == QLatin1String("true"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -245,7 +245,7 @@ void PlacesItem::updateBookmarkForRole(const QByteArray& role)
|
||||||
//
|
//
|
||||||
// NOTE: It is important to use "KFile System Bookmarks" as context
|
// NOTE: It is important to use "KFile System Bookmarks" as context
|
||||||
// (see PlacesItemModel::createSystemBookmarks()).
|
// (see PlacesItemModel::createSystemBookmarks()).
|
||||||
if (text() != i18nc("KFile System Bookmarks", m_bookmark.text().toUtf8().data())) {
|
if (text() != i18ndc("kio5", "KFile System Bookmarks", m_bookmark.text().toUtf8().data())) {
|
||||||
m_bookmark.setFullText(text());
|
m_bookmark.setFullText(text());
|
||||||
}
|
}
|
||||||
} else if (role == "url") {
|
} else if (role == "url") {
|
||||||
|
|
Loading…
Reference in a new issue