From 4c89e69218f99e101ccc9a2956e7ac2732a81997 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 25 Feb 2012 03:50:10 +0000 Subject: [PATCH] Code cleanup --- src/download.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/download.c b/src/download.c index e56e6e4..afa7d72 100644 --- a/src/download.c +++ b/src/download.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011 Pierre Pronchery */ +/* Copyright (c) 2009-2012 Pierre Pronchery */ /* This file is part of DeforaOS Desktop Surfer */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -331,7 +331,7 @@ static int _download_error(Download * download, char const * message, int ret) perror(message); return -ret; } - dialog = gtk_message_dialog_new(download != NULL + dialog = gtk_message_dialog_new((download != NULL) ? GTK_WINDOW(download->window) : NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,