diff options
| author | Kai Uwe Broulik <[email protected]> | 2019-06-04 08:58:28 +0200 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2019-06-04 08:58:28 +0200 |
| commit | c43165a1c42f623a5b183c84083633df9cf35e93 (patch) | |
| tree | 9f09a6801fbe44637e1c3cf934423b8add097a2e /src | |
| parent | 73e6d074e69ca7d16d8deb9b6eec0a685230e53b (diff) | |
[Places Panel] Pass iconName to KFilePlaceEditDialog
Ensures that editing an entry with a custom icon doesn't have its icon discarded.
Differential Revision: https://phabricator.kde.org/D21558
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/places/placespanel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 224eb0c64..4e99daf7a 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -490,9 +490,10 @@ void PlacesPanel::editEntry(int index) QHash<QByteArray, QVariant> data = m_model->data(index); const QUrl url = data.value("url").toUrl(); const QString text = data.value("text").toString(); + const QString iconName = data.value("iconName").toString(); const bool applicationLocal = !data.value("applicationName").toString().isEmpty(); - QPointer<KFilePlaceEditDialog> dialog = new KFilePlaceEditDialog(true, url, text, QString(), true, applicationLocal, KIconLoader::SizeMedium, this); + QPointer<KFilePlaceEditDialog> dialog = new KFilePlaceEditDialog(true, url, text, iconName, true, applicationLocal, KIconLoader::SizeMedium, this); if (dialog->exec() == QDialog::Accepted) { PlacesItem* oldItem = m_model->placesItem(index); if (oldItem) { |
