git repos / SagoImageBrowser

commit b09b1f5c

Poul Sander · 2026-06-28 20:56
b09b1f5cc39fb11acfb2141fe905788d8facdbc1 patch · browse files
parent 8cb93c2fff963711b0f3b1493b7dd7927da1abe8

Go to the new root folder if selected

Changed files

M src/mainwindow.cpp before
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3fadf22..1dc4c1f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp
@@ -394,6 +394,7 @@ void MainWindow::setupConnections()
QString rootPath = current->data(Qt::UserRole).toString();
m_dirModel->setRootPath(rootPath);
m_treeView->setRootIndex(m_dirModel->rootIndex());
+ navigateToFolder(QFile::encodeName(rootPath));
});
connect(m_treeView, &QTreeView::clicked, this,