aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-13 12:58:58 +0100
committerDan Gudmundsson <[email protected]>2015-01-13 12:58:58 +0100
commitdf7e1bab57862b4d7c37da4771790a4462c3eca5 (patch)
tree95924f0c30c64263dda1cc38827c4c0295df77a1 /lib/debugger
parent8ee2d5f59f0e3ceee6895b5af41e563a29a22be2 (diff)
parent8956d9d02190cac3a82b89eb23b68b3494ed390f (diff)
downloadotp-df7e1bab57862b4d7c37da4771790a4462c3eca5.tar.gz
otp-df7e1bab57862b4d7c37da4771790a4462c3eca5.tar.bz2
otp-df7e1bab57862b4d7c37da4771790a4462c3eca5.zip
Merge branch 'maint'
* maint: debugger: Fix debugger save options on mac wx: Do not crash server when going down
Diffstat (limited to 'lib/debugger')
-rw-r--r--lib/debugger/src/dbg_wx_settings.erl10
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