ui: fixes in project setup and indexing

* allow to ignore missing paths in project setup
* button to remove missing paths in project setup
* fixed progress dialog stays on empty project indexing
* don't unblock ui between indexin steps
This commit is contained in:
Eberhard Graether
2017-12-20 22:48:37 +01:00
parent bfa43df491
commit f849c9d01d
11 changed files with 73 additions and 30 deletions
+8 -4
View File
@@ -163,18 +163,18 @@ void QtDialogView::startIndexingDialog(
Task::dispatch(std::make_shared<TaskLambda>(
[=]()
{
project->buildIndex(info);
project->buildIndex(info, this);
}
));
m_windowStack.clearWindows();
showUnknownProgress("Preparing Indexing", "Setting up Indexers", false);
}
);
connect(window, &QtWindow::canceled,
[=]()
{
std::cout << "cancelse" << std::endl;
setUIBlocked(false);
}
);
@@ -228,13 +228,17 @@ void QtDialogView::finishedIndexingDialog(
);
}
void QtDialogView::hideDialogs()
void QtDialogView::hideDialogs(bool unblockUI)
{
m_onQtThread2(
[=]()
{
m_windowStack.clearWindows();
setUIBlocked(false);
if (unblockUI)
{
setUIBlocked(false);
}
}
);