logic: Ask user before reparsing the project

While the message box with the question is visible the ui is blocked. A message appears when:
* when project was edited
* when preferences were edited
* when project file has more recent changes than db
* when db has a different version than Coati
This commit is contained in:
Eberhard Graether
2016-04-24 22:47:39 +02:00
parent a6e57a6564
commit 6be207a68a
16 changed files with 342 additions and 70 deletions
+8 -3
View File
@@ -25,7 +25,7 @@
#include "settings/ApplicationSettings.h"
Storage::Storage(const FilePath& dbPath)
: m_sqliteStorage(dbPath.str())
: m_sqliteStorage(dbPath)
{
}
@@ -33,18 +33,23 @@ Storage::~Storage()
{
}
FilePath Storage::getDbFilePath() const
{
return m_sqliteStorage.getDbFilePath();
}
Version Storage::getVersion() const
{
return m_sqliteStorage.getVersion();
}
bool Storage::init()
void Storage::init()
{
m_commandIndex.addNode(0, NameHierarchy(SearchMatch::getCommandName(SearchMatch::COMMAND_ALL)));
m_commandIndex.addNode(0, NameHierarchy(SearchMatch::getCommandName(SearchMatch::COMMAND_ERROR)));
m_commandIndex.finishSetup();
return m_sqliteStorage.init();
m_sqliteStorage.init();
}
void Storage::clear()