Change the type of path passed to DataBaseManagement::updateToCurrentVersion

This commit is contained in:
Luis Ángel San Martín
2025-03-29 13:29:09 +01:00
parent d4b7c6dd8a
commit b0d2d05bc9
4 changed files with 19 additions and 18 deletions

View File

@ -831,8 +831,8 @@ void LibraryWindow::loadLibrary(const QString &name)
importWidget->setUpgradeLook();
showImportingWidget();
upgradeLibraryFuture = std::async(std::launch::async, [this, name, path] {
bool updated = DataBaseManagement::updateToCurrentVersion(path);
upgradeLibraryFuture = std::async(std::launch::async, [this, name, path, rootPath] {
bool updated = DataBaseManagement::updateToCurrentVersion(rootPath);
if (!updated)
emit errorUpgradingLibrary(path);