From 0134b0c04a168cd2ea187530ad8a15a75463b0f0 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 20 Apr 2014 09:52:52 +0000 Subject: [PATCH] Eolite 2.21: file selection fix git-svn-id: svn://kolibrios.org@4861 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/Eolite.c | 4 ++-- programs/cmm/eolite/include/copy.h | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 19cf27fd5e..72a8477e32 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -81,8 +81,8 @@ enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir -#define TITLE "Eolite File Manager v2.2" -#define ABOUT_TITLE "Eolite v2.2" +#define TITLE "Eolite File Manager v2.21" +#define ABOUT_TITLE "Eolite v2.21" dword col_padding, col_selec, col_lpanel; int toolbar_buttons_x[7]={9,46,85,134,167,203}; diff --git a/programs/cmm/eolite/include/copy.h b/programs/cmm/eolite/include/copy.h index bc2a9d8615..8f946539e8 100644 --- a/programs/cmm/eolite/include/copy.h +++ b/programs/cmm/eolite/include/copy.h @@ -49,7 +49,7 @@ void copyf_Draw_Progress(dword filename) { if (CheckEvent()==evButton) { notify(T_CANCEL_PASTE); - ExitProcess(); + CopyExit(); } } @@ -64,7 +64,7 @@ void Paste() tst = j*4096; strlcpy(#copy_from, clipboard.GetSlotData(clipboard.GetSlotCount()-1)+8+tst, 4096); debug(#copy_from); - if (!copy_from) ExitProcess(); + if (!copy_from) CopyExit(); strcpy(#copy_to, #path); strcat(#copy_to, #copy_from+strrchr(#copy_from,'/')); if (!strcmp(#copy_from,#copy_to)) @@ -76,7 +76,7 @@ void Paste() if (strstr(#copy_to, #copy_from)) { notify("Copy directory into itself is a bad idea..."); - ExitProcess(); + CopyExit(); } if (copy_rezult = copyf(#copy_from,#copy_to)) { @@ -94,9 +94,14 @@ void Paste() cut_active=false; } for (j = 0; j < MAX_HISTORY_NUM; j++) strcpy(#copy_path.copy_list[j].Item, 0); - action_buf = COPY_PASTE_END; add_to_copy_active=0; id_add_to_copy=0; + CopyExit(); +} + +void CopyExit() +{ + action_buf = COPY_PASTE_END; ActivateWindow(GetProcessSlot(Form.ID)); ExitProcess(); -} +} \ No newline at end of file