diff options
author | Dan Gudmundsson <[email protected]> | 2009-12-16 13:53:01 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2009-12-18 16:30:07 +0100 |
commit | 438d778eb1ccf432ddc8e275e5ee3e91f590cf8c (patch) | |
tree | 0e6fa3a105e8efdf27bfe7091885b068d7a1fd6d /lib/debugger/src/dbg_wx_filedialog_win.erl | |
parent | cb62972ca24198cc13e030adbd0b8a757bdb293c (diff) | |
download | otp-438d778eb1ccf432ddc8e275e5ee3e91f590cf8c.tar.gz otp-438d778eb1ccf432ddc8e275e5ee3e91f590cf8c.tar.bz2 otp-438d778eb1ccf432ddc8e275e5ee3e91f590cf8c.zip |
Dbg Fixed mac gui issues
Diffstat (limited to 'lib/debugger/src/dbg_wx_filedialog_win.erl')
-rw-r--r-- | lib/debugger/src/dbg_wx_filedialog_win.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_wx_filedialog_win.erl b/lib/debugger/src/dbg_wx_filedialog_win.erl index d883438639..946e23e797 100644 --- a/lib/debugger/src/dbg_wx_filedialog_win.erl +++ b/lib/debugger/src/dbg_wx_filedialog_win.erl @@ -375,7 +375,8 @@ show_completion(Wanted, State = #state{text=TC, win=Win, list=LC, completion=Com Start = length(Wanted), wxTextCtrl:setValue(TC, Path++"/"), wxTextCtrl:setInsertionPoint(TC, Start), - wxTextCtrl:setSelection(TC, Start, -1), + Last = wxTextCtrl:getLastPosition(TC), + wxTextCtrl:setSelection(TC, Start, Last), destroy_completion(Comp), wxWindow:setFocus(TC), State#state{ptext=Path, completion=undefined}; @@ -399,7 +400,7 @@ show_completion(Wanted, State = #state{text=TC, win=Win, list=LC, completion=Com LB = wxListBox:new(Temp, ?COMPLETION_WIN, [{style, ?wxLB_SINGLE}, {choices, Files}, {size, Size}]), - wxListBox:connect(LB, command_listbox_doubleclicked), + %% wxListBox:connect(LB, command_listbox_doubleclicked), wxListBox:connect(LB, command_listbox_selected), wxWindow:show(Temp), wxWindow:setFocus(TC), |