[gnome-disk-utility/udisks2-port] When restoring a disk image, don't spew warning if auth dialog is canceled
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] When restoring a disk image, don't spew warning if auth dialog is canceled
- Date: Fri, 20 Jan 2012 17:01:46 +0000 (UTC)
commit cad1934583a5dd61cca8a80f3814bc9c047f7a2d
Author: David Zeuthen <davidz redhat com>
Date: Fri Jan 20 12:01:04 2012 -0500
When restoring a disk image, don't spew warning if auth dialog is canceled
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gdurestorediskimagedialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/palimpsest/gdurestorediskimagedialog.c b/src/palimpsest/gdurestorediskimagedialog.c
index 35fca0b..c0365f5 100644
--- a/src/palimpsest/gdurestorediskimagedialog.c
+++ b/src/palimpsest/gdurestorediskimagedialog.c
@@ -124,7 +124,8 @@ static void
restore_disk_image_data_complete (RestoreDiskImageData *data)
{
g_cancellable_cancel (data->cancellable);
- gtk_dialog_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_CANCEL);
+ if (data->dialog != NULL)
+ gtk_dialog_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_CANCEL);
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]