Skip to content

Commit

Permalink
fix: repeated items for dde-dconfig-editor
Browse files Browse the repository at this point in the history
  model need clear when refresh app resources.
  it introduced in 6c737db
  • Loading branch information
18202781743 committed Oct 30, 2023
1 parent 10ee7e7 commit 3acd198
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dconfig-center/dde-dconfig-editor/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ void MainWindow::refreshAppResources(const QString &appid, const QString &matchR
{
resourceListView->reset();
auto model = qobject_cast<QStandardItemModel *>(resourceListView->model());
model->clear();

const auto &resources = appid == NoAppId ? ResourceList() : resourcesForApp(appid);

Expand Down

0 comments on commit 3acd198

Please sign in to comment.