Commit 96c27f1e authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen Committed by Ludovic Fauvet

Updating file system watcher when using parent dir button.

parent f12252db
......@@ -150,6 +150,7 @@ void FileBrowser::on_pushButtonParent_clicked()
if ( !QDir(m_DirsModel->filePath( m_ui.treeViewBrowser->currentIndex() )).isRoot() )
{
addElementToHistory();
updateFsWatcher( m_DirsModel->filePath( m_ui.treeViewBrowser->currentIndex().parent() ) );
m_ui.listViewBrowser->setRootIndex( m_FilesModel->index( m_DirsModel->filePath( m_ui.treeViewBrowser->currentIndex().parent() ) ) );
m_ui.treeViewBrowser->setCurrentIndex( m_DirsModel->index( m_FilesModel->filePath( m_ui.listViewBrowser->rootIndex() ) ) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment