[gnome-photos] export-dialog: Simplify code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] export-dialog: Simplify code
- Date: Fri, 1 Apr 2016 20:36:16 +0000 (UTC)
commit a19f3bf57f830dffe7212b4637a51a4824f365f5
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Mar 24 13:02:56 2016 +0100
export-dialog: Simplify code
src/photos-export-dialog.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-export-dialog.c b/src/photos-export-dialog.c
index 43b76a5..921dbc4 100644
--- a/src/photos-export-dialog.c
+++ b/src/photos-export-dialog.c
@@ -202,14 +202,11 @@ photos_export_dialog_load (GObject *source_object, GAsyncResult *result, gpointe
PhotosBaseItem *item = PHOTOS_BASE_ITEM (source_object);
GError *error;
GeglNode *node = NULL;
- gboolean success = TRUE;
error = NULL;
node = photos_base_item_load_finish (item, result, &error);
if (error != NULL)
{
- success = FALSE;
-
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
{
g_error_free (error);
@@ -226,7 +223,7 @@ photos_export_dialog_load (GObject *source_object, GAsyncResult *result, gpointe
photos_export_dialog_show_size_options (self, FALSE, FALSE);
- if (success)
+ if (node != NULL)
{
GeglRectangle bbox;
gboolean got_bbox_edited;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]