aboutsummaryrefslogtreecommitdiffstats
path: root/src/bench/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bench/mainwindow.cpp')
-rw-r--r--src/bench/mainwindow.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bench/mainwindow.cpp b/src/bench/mainwindow.cpp
index 567e215..6e3c17b 100644
--- a/src/bench/mainwindow.cpp
+++ b/src/bench/mainwindow.cpp
@@ -216,7 +216,7 @@ void MainWindow::init()
restoreGeometry(s.value("geometry").toByteArray());
//Only set the workspace if we didn't already set it by command line
if (m_workspacePath.isEmpty()) {
- setWorkspace(s.value("workspace", QDir::currentPath()).toString());
+ setWorkspace(s.value("workspace", QDir::currentPath()).toString(), false);
}
if (s.value("http_proxy/enabled").toBool()) {
@@ -338,13 +338,15 @@ void MainWindow::slowDownAnimations(bool enable)
}
-void MainWindow::setWorkspace(const QString& path)
+void MainWindow::setWorkspace(const QString& path, bool activateRootPath)
{
m_workspacePath = path;
m_workspace->setRootPath(path);
m_node->setWorkspace(path);
m_hub->setWorkspace(path);
m_allHosts->setWorkspace(path);
+ if (activateRootPath)
+ m_workspace->activateRootPath();
updateRecentFolder(path);
}