From 6d879d326e6d3749f110c517bda339f375948d62 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 12 Jul 2013 10:23:52 +0000 Subject: [PATCH] Some fix for r.3812 git-svn-id: svn://kolibrios.org@3815 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/opendial/opendial.asm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/programs/fs/opendial/opendial.asm b/programs/fs/opendial/opendial.asm index e458966d29..c6da3baa47 100644 --- a/programs/fs/opendial/opendial.asm +++ b/programs/fs/opendial/opendial.asm @@ -1461,6 +1461,12 @@ draw_window: shl edx,2 add edx,message_open_dialog_button mov edx,[edx] +;-------------------------------------- + cmp [open_dialog_type],1 + jne @f + + cmp [focus_pointer],1 + je @f mov eax,[file_browser_data_1.selected_BDVK_adress] test [eax],byte 0x10 @@ -1468,6 +1474,7 @@ draw_window: mov edx,message_0 ; Open Dir @@: +;-------------------------------------- mov [open_button_coordinates],ebx mov ecx,[w_work_button_text] or ecx,0x90000000 @@ -1487,6 +1494,9 @@ draw_open_button_label: cmp [open_dialog_type],1 jne .exit_1 + cmp [focus_pointer],1 + je draw_save_button_label + pusha mov ebx,[open_button_coordinates] test ebx,ebx @@ -1515,6 +1525,19 @@ draw_open_button_label: .exit_1: ret ;--------------------------------------------------------------------- +draw_save_button_label: + pusha + mov ebx,[open_button_coordinates] + + mov edx,message_1 ; Save + + mov ecx,[w_work_button_text] + or ecx,0xd0000000 + mov edi,[w_work_button] + mcall 4 ;message_open_button + popa + ret +;--------------------------------------------------------------------- copy_new_file_name: mov esi,[file_browser_data_1.selected_BDVK_adress] add esi,40