From 0b0dd3e2c5ee5a0874b32199783188a69421a35d Mon Sep 17 00:00:00 2001 From: Rus Date: Thu, 26 Jul 2007 21:41:48 +0000 Subject: [PATCH] Tinypad v. 4.0.5 bug-fix: - a new tab is created when opening a file from folder of tinypad git-svn-id: svn://kolibrios.org@592 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/tinypad/trunk/tinypad.asm | 3 +++ programs/develop/tinypad/trunk/tp-files.asm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/programs/develop/tinypad/trunk/tinypad.asm b/programs/develop/tinypad/trunk/tinypad.asm index a0445c2941..17ee3bad58 100644 --- a/programs/develop/tinypad/trunk/tinypad.asm +++ b/programs/develop/tinypad/trunk/tinypad.asm @@ -19,6 +19,9 @@ ; - other bug-fixes and speed/size optimizations ; ; HISTORY: +; 4.0.5 (mike.dld and Rus) +; bug-fixes: +; - a new tab is created when opening a file from folder of tinypad ; 4.0.4 (mike.dld) ; bug-fixes: ; - statusbar contained hint after dialog operation cancelled diff --git a/programs/develop/tinypad/trunk/tp-files.asm b/programs/develop/tinypad/trunk/tp-files.asm index 7a697825c3..9a807ad68e 100644 --- a/programs/develop/tinypad/trunk/tp-files.asm +++ b/programs/develop/tinypad/trunk/tp-files.asm @@ -194,8 +194,8 @@ func load_file ;////////////////////////////////////////////////////////////// mov ecx,eax cmp [tab_bar.Items.Count],1 jne @f - cmp [cur_editor.FilePath],'/' - je @f + cmp [cur_editor.FilePath],0 + jne @f cmp [cur_editor.Modified],0 jne @f mov ebp,cur_editor