logic: Fixed and improved indexing interruption (issue #634)

* Fixed indexing can be interrupted when dialog hidden
* Clear intermediate storages when interrupting
* Abort waiting for less queued storages when indexing interrupted
* Don't index another file when indexing was already interrupted
* Moved indexing interrupted progress dialog to TaskBuildIndex
* Use MessageIndexingInterrupted instead of MessageInterruptTasks
This commit is contained in:
Eberhard Graether
2018-11-23 15:33:20 +01:00
parent 308954635e
commit 267d6b2eb7
17 changed files with 67 additions and 67 deletions
+3 -3
View File
@@ -21,7 +21,7 @@
#include "FileLogger.h"
#include "logging.h"
#include "LogManager.h"
#include "MessageInterruptTasks.h"
#include "MessageIndexingInterrupted.h"
#include "MessageLoadProject.h"
#include "MessageStatus.h"
#include "ResourcePaths.h"
@@ -37,8 +37,8 @@
void signalHandler(int signum)
{
std::cout << "interrupt running tasks" << std::endl;
MessageInterruptTasks().dispatch();
std::cout << "interrupt indexing" << std::endl;
MessageIndexingInterrupted().dispatch();
}
void setupLogging()