summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4053a030..b3670fc7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -394,10 +394,9 @@ MainWindow::MainWindow(Settings &settings
connect(&m_PluginContainer, SIGNAL(diagnosisUpdate()), this, SLOT(scheduleCheckForProblems()));
- connect(m_OrganizerCore.directoryRefresher(), &DirectoryRefresher::refreshed, [this] { onDirectoryStructureChanged(); });
- connect(
- m_OrganizerCore.directoryRefresher(),
- &DirectoryRefresher::progress,
+ connect(&m_OrganizerCore, &OrganizerCore::directoryStructureReady,
+ this, &MainWindow::onDirectoryStructureChanged);
+ connect(m_OrganizerCore.directoryRefresher(), &DirectoryRefresher::progress,
this, &MainWindow::refresherProgress);
connect(m_OrganizerCore.directoryRefresher(), SIGNAL(error(QString)), this, SLOT(showError(QString)));