Skip to content

Commit

Permalink
[qml-plugin-filemanager] Avoid content refresh when disabling filemod…
Browse files Browse the repository at this point in the history
…el. Contributes to JB#49695
  • Loading branch information
pvuorela committed May 12, 2020
1 parent 24b8a2a commit 9f987ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugin/filemodel.cpp
Expand Up @@ -310,7 +310,8 @@ void FileModel::setActive(bool active)
return;

m_active = active;
scheduleUpdate(ActiveChanged | ContentChanged);
scheduleUpdate(m_active ? (ActiveChanged | ContentChanged)
: ActiveChanged);
}

QString FileModel::appendPath(QString pathName)
Expand Down

0 comments on commit 9f987ac

Please sign in to comment.