diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 19cf27fd5..72a8477e3 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 bc2a9d861..8f946539e 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