Skip to content

Commit

Permalink
Merge branch 'no_refresh_on_disabling' into 'master'
Browse files Browse the repository at this point in the history
[qml-plugin-filemanager] Avoid content refresh when disabling filemodel. Contributes to JB#49695

See merge request mer-core/nemo-qml-plugin-filemanager!30
  • Loading branch information
pvuorela committed May 19, 2020
2 parents 24b8a2a + 9f987ac commit 2502c51
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 2502c51

Please sign in to comment.