From a3c7b9fa731878774358fc3f23c07e684a229172 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Fri, 19 Dec 2014 15:08:12 +0100 Subject: debugger: Fix debugger save options on mac wxFileDialog:getPaths(FD) always return the empty list on mac when using file dialog. --- lib/debugger/src/dbg_wx_settings.erl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/debugger') diff --git a/lib/debugger/src/dbg_wx_settings.erl b/lib/debugger/src/dbg_wx_settings.erl index 20aac74c3d..2c332c0a54 100644 --- a/lib/debugger/src/dbg_wx_settings.erl +++ b/lib/debugger/src/dbg_wx_settings.erl @@ -65,14 +65,8 @@ open_win(Win, Pos, SFile, Str, What) -> {style,What}]), case wxFileDialog:showModal(FD) of ?wxID_OK -> - case wxFileDialog:getPaths(FD) of - [NewFile] -> - wxFileDialog:destroy(FD), - {ok, NewFile}; - _ -> - wxFileDialog:destroy(FD), - cancel - end; + NewFile = wxFileDialog:getPath(FD), + {ok, NewFile}; _ -> wxFileDialog:destroy(FD), cancel -- cgit v1.2.3