mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
Fix clazy writing-to-temporary warning
This commit is contained in:
parent
273fc202fd
commit
3512293b98
|
@ -719,8 +719,8 @@ void PlacesItemModelTest::testEditMetadata()
|
||||||
schedulePlaceRemoval(tempDirIndex);
|
schedulePlaceRemoval(tempDirIndex);
|
||||||
|
|
||||||
// modify place metadata
|
// modify place metadata
|
||||||
PlacesItem *item = m_model->placesItem(tempDirIndex);
|
auto bookmark = m_model->placesItem(tempDirIndex)->bookmark();
|
||||||
item->bookmark().setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName());
|
bookmark.setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName());
|
||||||
m_model->refresh();
|
m_model->refresh();
|
||||||
|
|
||||||
// check if the place was modified in both models
|
// check if the place was modified in both models
|
||||||
|
|
Loading…
Reference in a new issue