diff options
author | Dan Gudmundsson <[email protected]> | 2014-12-19 15:08:12 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2014-12-19 15:08:12 +0100 |
commit | a3c7b9fa731878774358fc3f23c07e684a229172 (patch) | |
tree | 7f54151b41194c46eee096962e4824057b526596 | |
parent | 7cf95c33a50a705c38226bccd0caa76a96f92ea5 (diff) | |
download | otp-a3c7b9fa731878774358fc3f23c07e684a229172.tar.gz otp-a3c7b9fa731878774358fc3f23c07e684a229172.tar.bz2 otp-a3c7b9fa731878774358fc3f23c07e684a229172.zip |
debugger: Fix debugger save options on mac
wxFileDialog:getPaths(FD) always return the empty list
on mac when using file dialog.
-rw-r--r-- | lib/debugger/src/dbg_wx_settings.erl | 10 |
1 files changed, 2 insertions, 8 deletions
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 |