Commit 576077eb authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

[importer] do not ignore cancellation errors

parent 5a71a013
......@@ -183,6 +183,11 @@ write_metadata_ready_func (GError *error,
{
GthImportTask *self = user_data;
if ((error != NULL) && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
gth_task_completed (GTH_TASK (self), error);
return;
}
if (error != NULL)
g_clear_error (&error);
......@@ -198,6 +203,11 @@ transformation_ready_cb (GError *error,
GthStringList *tag_list;
GList *file_list;
if ((error != NULL) && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
gth_task_completed (GTH_TASK (self), error);
return;
}
if ((self->priv->tags == NULL) || (self->priv->tags[0] == NULL)) {
catalog_imported_file (self);
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment