From 7c605482cb179dc81b219d239d15c585049b6433 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Wed, 27 Apr 2016 14:15:57 +0200 Subject: [observer] Set correct parent in Label dialog The dialog for setting label on match specs in observer had faulty parent. This is now corrected. --- lib/observer/src/observer_traceoptions_wx.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/observer/src') diff --git a/lib/observer/src/observer_traceoptions_wx.erl b/lib/observer/src/observer_traceoptions_wx.erl index f9b4929ec4..8a6d1403a8 100644 --- a/lib/observer/src/observer_traceoptions_wx.erl +++ b/lib/observer/src/observer_traceoptions_wx.erl @@ -327,7 +327,7 @@ select_matchspec(Pid, Parent, AllMatchSpecs, Key) -> filter_listbox_data("", Choices, ListBox), Add = fun(_,_) -> - case edit_ms(TextCtrl, new, Parent) of + case edit_ms(TextCtrl, new, Dialog) of Ms = #match_spec{} -> add_and_select(-1, Ms, ListBox), wxWindow:enable(OkButt), @@ -341,7 +341,7 @@ select_matchspec(Pid, Parent, AllMatchSpecs, Key) -> case SelId >= 0 of true -> #match_spec{name=Name} = wxListBox:getClientData(ListBox,SelId), - case edit_ms(TextCtrl, Name, Parent) of + case edit_ms(TextCtrl, Name, Dialog) of Ms = #match_spec{} -> add_and_select(SelId, Ms, ListBox), wxWindow:enable(OkButt), -- cgit v1.2.3