ui: Explain differences of errors and how to fix them (issue #501)

* added help button next to filters in error table
* added menu action Help -> Fixing Errors
* added help button on indexing dialog
* show help message after first time indexing with errors, if not seen already
This commit is contained in:
Eberhard Graether
2017-11-09 12:01:33 +01:00
parent 0cf64d338b
commit dc16b3f45b
15 changed files with 166 additions and 16 deletions
@@ -1,6 +1,7 @@
#include "component/controller/ErrorController.h"
#include "data/access/StorageAccess.h"
#include "settings/ApplicationSettings.h"
ErrorController::ErrorController(StorageAccess* storageAccess)
: m_storageAccess(storageAccess)
@@ -46,6 +47,29 @@ void ErrorController::handleMessage(MessageNewErrors* message)
}
void ErrorController::handleMessage(MessageShowErrorHelpMessage* message)
{
ApplicationSettings* appSettings = ApplicationSettings::getInstance().get();
if (!message->force && appSettings->getSeenErrorHelpMessage())
{
return;
}
if (!message->force)
{
ErrorCountInfo info = m_storageAccess->getErrorCount();
if (!info.total)
{
return;
}
}
appSettings->setSeenErrorHelpMessage(true);
appSettings->save();
getView()->showErrorHelpMessage();
}
void ErrorController::handleMessage(MessageShowErrors* message)
{
if (message->errorId)