Skip to content

Commit abbefbf

Browse files
committed
database: name library.db in its corruption dialog
The library.db corruption dialog was copied from the data.db one and still printed dbfilename_data, so a broken library.db was reported as data.db while the terminal message named library.db. The dialog's "delete database" button unlinks library.db, so a user trusting the dialog could delete the library believing they were removing data.db.
1 parent bcc01d0 commit abbefbf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/common/database.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4669,7 +4669,7 @@ dt_database_t *dt_database_init(const char *alternative,
46694669
// we inform the user here and let him decide what to do: exit or delete and try again.
46704670

46714671
gchar* quick_check_text = NULL;
4672-
if(g_strcmp0(libdb_status, "ok")) // data_status is not ok
4672+
if(g_strcmp0(libdb_status, "ok"))
46734673
{
46744674
quick_check_text = g_strdup_printf(_("quick_check said:\n"
46754675
"%s \n"), libdb_status);
@@ -4722,7 +4722,7 @@ dt_database_t *dt_database_init(const char *alternative,
47224722
"it seems that the database is corrupted.\n"
47234723
"%s"
47244724
"%s"),
4725-
dbfilename_data, quick_check_text, label_options);
4725+
dbfilename_library, quick_check_text, label_options);
47264726

47274727
g_free(quick_check_text);
47284728
g_free(libdb_status);

0 commit comments

Comments
 (0)