mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +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);
|
||||
|
||||
// modify place metadata
|
||||
PlacesItem *item = m_model->placesItem(tempDirIndex);
|
||||
item->bookmark().setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName());
|
||||
auto bookmark = m_model->placesItem(tempDirIndex)->bookmark();
|
||||
bookmark.setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName());
|
||||
m_model->refresh();
|
||||
|
||||
// check if the place was modified in both models
|
||||
|
|
Loading…
Reference in a new issue