Skip to content

Commit

Permalink
Fix the bulk export problem with trying to export old databases needi…
Browse files Browse the repository at this point in the history
…ng migration first.
  • Loading branch information
christofmuc committed Jul 13, 2021
1 parent 18192dd commit b1d3756
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MidiKraft-database
4 changes: 2 additions & 2 deletions The-Orm/MainComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,12 @@ class MergeAndExport : public ThreadWithProgressWindow {
allPatches = mergeSource.getPatches(filter, 0, -1);
}
catch (midikraft::PatchDatabaseException& e) {
SimpleLogger::instance()->postMessage("Error opening database file " + file.getFullPathName() + ":" + e.what());
SimpleLogger::instance()->postMessage("Fatal error opening database file " + file.getFullPathName() + ":" + e.what());
}
tempfile.deleteFile();
}
catch (midikraft::PatchDatabaseException& e) {
SimpleLogger::instance()->postMessage("Error opening database file " + file.getFullPathName() + ":" + e.what());
SimpleLogger::instance()->postMessage("Fatal error opening database file " + file.getFullPathName() + ":" + e.what());
}

// We have all patches in memory - write them into a pip file
Expand Down
2 changes: 2 additions & 0 deletions The-Orm/PatchView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ void PatchView::bulkImportPIP(File directory) {
BulkImportPIP bulk(directory, database_, automaticCategories_);

bulk.runThread();

retrieveFirstPageFromDatabase();
}

void PatchView::exportPatches()
Expand Down

0 comments on commit b1d3756

Please sign in to comment.