This patch fixes bugs [ 1580524 ] "Malt and hop dropdowns problems" and [ 1511954 ] "Dropdowns (malt, hops): Edit a line with data already, drop'".
The problem seemed to be in the table models. In the HopsTableModel and the MaltTableModel, the getValueAt() function returned a String in stead of a Hop or Fermentable object. This threw of the comboBoxModel and caused it to remain unset after the combobox had been opened. This way, either an empty selection appeared (bug [ 1580524 ]), or the selection that had previous been set remained (bugs [ 1580524 ] and [ 1511954 ]).
Converted from SourceForge issue 1729506, submitted by jeroen_wouters
This patch fixes bugs [ 1580524 ] "Malt and hop dropdowns problems" and [ 1511954 ] "Dropdowns (malt, hops): Edit a line with data already, drop'". The problem seemed to be in the table models. In the HopsTableModel and the MaltTableModel, the getValueAt() function returned a String in stead of a Hop or Fermentable object. This threw of the comboBoxModel and caused it to remain unset after the combobox had been opened. This way, either an empty selection appeared (bug [ 1580524 ]), or the selection that had previous been set remained (bugs [ 1580524 ] and [ 1511954 ]).