Changed DB paths handling

This commit is contained in:
Valentino Orlandi 2022-08-13 21:06:24 +02:00
parent 7991cf9ddd
commit 52eb100e07
Signed by: elB4RTO
GPG Key ID: 1719E976DB2D4E71
2 changed files with 4 additions and 4 deletions

View File

@ -111,11 +111,11 @@ const std::string& Craplog::getHashesDatabasePath()
void Craplog::setStatsDatabasePath( const std::string& path )
{
this->db_stats_path = path;
this->db_stats_path = path + "/collection.db";
}
void Craplog::setHashesDatabasePath( const std::string& path )
{
this->db_hashes_path = path;
this->db_hashes_path = path + "/hashes.db";
}
const long& Craplog::getWarningSize()
@ -848,7 +848,7 @@ void Craplog::joinLogLines()
aux = "";
try {
// try as gzip compressed archive first
GzipOps::readFile( file.path, aux );
GZutils::readFile( file.path, aux );
} catch (GenericException& e) {
// failed closing file pointer

View File

@ -24,7 +24,7 @@ void Crapview::setDialogsLevel( const int& new_level )
void Crapview::setDbPath( const std::string& path )
{
this->dbQuery.setDbPath( path );
this->dbQuery.setDbPath( path + "/collection.db" );
}