[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11779 - gnunet-gtk/src
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11779 - gnunet-gtk/src |
Date: |
Thu, 17 Jun 2010 14:50:46 +0200 |
Author: grothoff
Date: 2010-06-17 14:50:46 +0200 (Thu, 17 Jun 2010)
New Revision: 11779
Modified:
gnunet-gtk/src/download.c
Log:
fix
Modified: gnunet-gtk/src/download.c
===================================================================
--- gnunet-gtk/src/download.c 2010-06-17 10:54:07 UTC (rev 11778)
+++ gnunet-gtk/src/download.c 2010-06-17 12:50:46 UTC (rev 11779)
@@ -52,16 +52,18 @@
if (dc->filename != NULL)
{
char buf[1024];
- getcwd (buf, sizeof(buf));
- if (strlen (buf) + strlen (dc->filename) + 2 < sizeof(buf))
+ if (NULL != getcwd (buf, sizeof(buf)))
{
- strcat (buf, DIR_SEPARATOR_STR);
- strcat (buf, dc->filename);
+ if (strlen (buf) + strlen (dc->filename) + 2 < sizeof(buf))
+ {
+ strcat (buf, DIR_SEPARATOR_STR);
+ strcat (buf, dc->filename);
+ }
+ /* sadly, this does not quite work in current GTK, GTK just
+ ignores the filename if the file does not yet exist */
+ gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (ad),
+ buf);
}
- /* sadly, this does not quite work in current GTK, GTK just
- ignores the filename if the file does not yet exist */
- gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (ad),
- buf);
}
if (GTK_RESPONSE_OK != gtk_dialog_run (GTK_DIALOG (ad)))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11779 - gnunet-gtk/src,
gnunet <=