diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fs/download.c | 2 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index c7ed4d18..453a847e 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -109,6 +109,8 @@ refreshDirectoryViewFromDisk(DownloadList * list) { | |||
109 | &size, | 109 | &size, |
110 | YES)) | 110 | YES)) |
111 | return; | 111 | return; |
112 | if (size == 0) | ||
113 | return; | ||
112 | fd = disk_file_open(ectx, | 114 | fd = disk_file_open(ectx, |
113 | list->filename, | 115 | list->filename, |
114 | O_RDONLY); | 116 | O_RDONLY); |
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index beb6efdc..f70f6630 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -479,7 +479,8 @@ void on_fssearchbutton_clicked_fs(gpointer dummy2, | |||
479 | 479 | ||
480 | searchString = getEntryLineValue(getMainXML(), | 480 | searchString = getEntryLineValue(getMainXML(), |
481 | "fssearchKeywordComboBoxEntry"); | 481 | "fssearchKeywordComboBoxEntry"); |
482 | if (searchString == NULL) { | 482 | if ( (searchString == NULL) || |
483 | (strlen(searchString) == 0) ) { | ||
483 | GE_LOG(ectx, | 484 | GE_LOG(ectx, |
484 | GE_ERROR | GE_USER | GE_IMMEDIATE, | 485 | GE_ERROR | GE_USER | GE_IMMEDIATE, |
485 | _("Need a keyword to search!\n")); | 486 | _("Need a keyword to search!\n")); |