diff options
author | Nick Schermer <nick@xfce.org> | 2012-01-21 15:17:45 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2012-01-21 15:17:45 +0100 |
commit | c352a6f98d14cdee17759dca8e186f203324f62e (patch) | |
tree | e979d1f2e5a6e5c9015b580d2ede841afe089eea /thunar/thunar-chooser-model.c | |
parent | 9f249baaf40f96f402da87afdbd1ed56eb7b4c9e (diff) | |
download | thunar-c352a6f98d14cdee17759dca8e186f203324f62e.tar.gz |
Fix removing custom launchers again.
Diffstat (limited to 'thunar/thunar-chooser-model.c')
-rw-r--r-- | thunar/thunar-chooser-model.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/thunar/thunar-chooser-model.c b/thunar/thunar-chooser-model.c index ad9b37ab..5861cc45 100644 --- a/thunar/thunar-chooser-model.c +++ b/thunar/thunar-chooser-model.c @@ -384,6 +384,15 @@ thunar_chooser_model_remove (ThunarChooserModel *model, model->content_type, error); + /* try to delete the file */ + if (succeed && g_app_info_delete (app_info)) + { + g_set_error (error, G_IO_ERROR, + G_IO_ERROR_FAILED, + _("Failed to remove \"%s\"."), + g_app_info_get_id (app_info)); + } + /* clean up */ g_object_unref (app_info); |