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:
@@ -1,21 +0,0 @@
|
||||
#ifndef MESSAGE_INTERRUPT_TASKS_H
|
||||
#define MESSAGE_INTERRUPT_TASKS_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
class MessageInterruptTasks:
|
||||
public Message<MessageInterruptTasks>
|
||||
{
|
||||
public:
|
||||
MessageInterruptTasks()
|
||||
{
|
||||
setSendAsTask(false);
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageInterruptTasks";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_INTERRUPT_TASKS_H
|
||||
@@ -0,0 +1,16 @@
|
||||
#ifndef MESSAGE_INDEXING_INTERRUPTED_H
|
||||
#define MESSAGE_INDEXING_INTERRUPTED_H
|
||||
|
||||
#include "Message.h"
|
||||
|
||||
class MessageIndexingInterrupted
|
||||
: public Message<MessageIndexingInterrupted>
|
||||
{
|
||||
public:
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageIndexingInterrupted";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_INDEXING_INTERRUPTED_H
|
||||
Reference in New Issue
Block a user