src: fixed crash when indexing in headless mode

This commit is contained in:
mlangkabel
2018-07-23 14:20:16 +02:00
parent c523f1bd8b
commit 637857fb56
7 changed files with 16 additions and 11 deletions
+3 -2
View File
@@ -145,7 +145,8 @@ void QtDialogView::hideProgressDialog()
}
void QtDialogView::startIndexingDialog(
Project* project, const std::vector<RefreshMode>& enabledModes, const RefreshInfo& info)
Project* project, const std::vector<RefreshMode>& enabledModes, const RefreshInfo& info,
std::function<void(const RefreshInfo& info)> onStartIndexing)
{
m_refreshInfos.clear();
@@ -206,7 +207,7 @@ void QtDialogView::startIndexingDialog(
Task::dispatch(std::make_shared<TaskLambda>(
[=]()
{
project->buildIndex(info, this);
onStartIndexing(info);
}
));