Bugfix: reload was not working properly

This commit is contained in:
Matthias Koefferlein 2024-04-29 18:51:31 +02:00
parent 4a2143d234
commit db0e9efe31
2 changed files with 4 additions and 2 deletions

View File

@ -1762,7 +1762,7 @@ read_db_from_layout (rdb::Database *db, tl::InputStream &is)
} }
void void
Database::load (const std::string &fn) Database::load (std::string fn)
{ {
tl::log << "Loading RDB from " << fn; tl::log << "Loading RDB from " << fn;

View File

@ -2455,8 +2455,10 @@ public:
* @brief Load the database from a file * @brief Load the database from a file
* *
* Note: This clears the existing database. * Note: This clears the existing database.
* The argument intentionally is a copy, so we can call
* "load (this->filename ())" for reloading.
*/ */
void load (const std::string &filename); void load (std::string filename);
/** /**
* @brief Applies the attributes from a different database * @brief Applies the attributes from a different database