Add encrypted tag to decrypted files

This commit is contained in:
Markus Koch 2018-07-07 11:25:02 +02:00
parent 8678f326cd
commit a3173fa1d8

View File

@ -387,7 +387,9 @@ static void mdiary_add_gpg_to_store(struct mdiary_scanner *mdiary_scanner,
if (g_spawn_command_line_sync(cmd, &cmd_stdout, &cmd_stderr, &exit_status, NULL) && exit_status == 0) {
g_message("GPG: Decryption OK!\n");
*add_tags = g_list_append(*add_tags, "encrypted");
mdiary_add_file_to_store(mdiary_scanner, filename, cmd_stdout, *add_tags, entryListStore, autoCompletion);
*add_tags = g_list_remove(*add_tags, g_list_last(*add_tags)->data);
} else {
mdiary_scanner->entries_failed++;
mdiary_scanner->error_code |= MDS_ERROR_GPG;