Dont load folder list until view is visible.

This commit is contained in:
craig.p.drummond
2013-11-15 19:40:02 +00:00
committed by craig.p.drummond
parent afd5082a43
commit abc18ca1a7
4 changed files with 13 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ void DirViewModel::setEnabled(bool e)
if (enabled) {
connect(MPDConnection::self(), SIGNAL(dirViewUpdated(DirViewItemRoot *)), this, SLOT(updateDirView(DirViewItemRoot *)));
} else {
clear();
disconnect(MPDConnection::self(), SIGNAL(dirViewUpdated(DirViewItemRoot *)), this, SLOT(updateDirView(DirViewItemRoot *)));
}
}