[Fixed 2.6] Error While Removing Notifier From Textfield

here it is the code causing the error described here

  
--[[============================================================================  
gui.lua  
============================================================================]]--  
  
--------------------------------------------------------------------------------  
-- GUI  
--------------------------------------------------------------------------------  
  
local MARGIN_DEFAULT = renoise.ViewBuilder.DEFAULT_CONTROL_MARGIN  
  
vb = nil   
dialog = nil  
  
local dec_to_hex = nil  
local hex_to_dec = nil  
  
--notifiers  
hex_to_dec = function()  
  
 local hex_value = todec(vb.views.txtHex.text)  
  
 vb.views.txtDec:remove_notifier(dec_to_hex)  
  
 if hex_value == 'NaN' then  
 renoise.app():show_warning('Invalid hexadecimal number!')  
 vb.views.txtDec.text = ''  
 vb.views.txtHex.text = ''  
 else  
 vb.views.txtDec.text = hex_value  
 end  
  
 vb.views.txtDec:add_notifier(dec_to_hex)  
  
end  
  
dec_to_hex = function()  
  
 local dec_value = tonumber(vb.views.txtDec.text)  
  
 vb.views.txtHex:remove_notifier(hex_to_dec)  
  
 if dec_value ~= nil then  
 vb.views.txtHex.text = bit.tohex(dec_value)  
 else  
 renoise.app():show_warning('Invalid decimal number!')  
 vb.views.txtDec.text = ''  
 vb.views.txtHex.text = ''  
 end  
  
 vb.views.txtHex:add_notifier(hex_to_dec)  
  
end  
  
--end notifiers  
  
  
function show_dialog()  
  
 if (dialog and dialog.visible) then  
 -- already showing a dialog. bring it to front:  
 dialog:show()  
 return  
 end  
  
 local MARGIN_DEFAULT = renoise.ViewBuilder.DEFAULT_CONTROL_MARGIN  
 local SPACING_DEFAULT = renoise.ViewBuilder.DEFAULT_CONTROL_SPACING  
  
 local TEXT_LABEL_WIDTH = 80  
 local CONTROL_WIDTH = 100  
 local CONTENT_WIDTH = TEXT_LABEL_WIDTH + CONTROL_WIDTH  
  
 local DIALOG_BUTTON_HEIGHT = renoise.ViewBuilder.DEFAULT_DIALOG_BUTTON_HEIGHT  
 local CONTROL_HEIGHT = renoise.ViewBuilder.DEFAULT_CONTROL_HEIGHT  
  
 vb = renoise.ViewBuilder()  
  
 -- create_global_properties  
  
 local row_Txt = vb:row {  
 vb:textfield {  
 id = "txtHex",  
 width = TEXT_LABEL_WIDTH,  
 notifier = hex_to_dec  
 },  
 vb:text {  
 id="lblHex",  
 text="< Hex - Dec >"  
 },  
 vb:textfield {  
 id = "txtDec",  
 width = TEXT_LABEL_WIDTH,  
 notifier = dec_to_hex  
 }  
 }   
  
 local dialog_content = vb:column {  
 id = "colContainer",  
 margin = MARGIN_DEFAULT,  
 spacing = SPACING_DEFAULT,  
 row_Txt  
 }  
  
 dialog = renoise.app():show_custom_dialog (  
 "Hex-Dec Converter",  
 dialog_content  
 )  
  
end  
  

Thanks. “textfield:remove_notifier” indeed tried to add a notifier :wacko: Will be fixed in the next update. This only applies to vb:textfield and vb:multiline_textfield.