aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/main.c b/main.c
index f006293..e38f0d4 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.142 2002/11/18 17:26:07 ukai Exp $ */
+/* $Id: main.c,v 1.143 2002/11/18 17:29:32 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -5932,17 +5932,7 @@ download_action(struct parsed_tagarg *arg)
}
}
}
- if (FirstDL)
- ldDL();
- else {
- if (Currentbuf == Firstbuf && Currentbuf->nextBuffer == NULL) {
- if (nTab > 1)
- deleteTab(CurrentTab);
- }
- else
- delBuffer(Currentbuf);
- displayBuffer(Currentbuf, B_FORCE_REDRAW);
- }
+ ldDL();
}
void
@@ -5970,12 +5960,23 @@ ldDL(void)
int reload;
#endif
- if (!FirstDL)
- return;
if (Currentbuf->bufferprop & BP_INTERNAL &&
!strcmp(Currentbuf->buffername, DOWNLOAD_LIST_TITLE))
delete = TRUE;
- else if (open_tab_dl_list) {
+ if (!FirstDL) {
+ if (delete) {
+ Currentbuf->bufferprop &= ~BP_RELOAD;
+ if (Currentbuf == Firstbuf && Currentbuf->nextBuffer == NULL) {
+ if (nTab > 1)
+ deleteTab(CurrentTab);
+ }
+ else
+ delBuffer(Currentbuf);
+ displayBuffer(Currentbuf, B_FORCE_REDRAW);
+ }
+ return;
+ }
+ if (!delete && open_tab_dl_list) {
_newT();
prev = Currentbuf;
delete = TRUE;