lib/roby/log/gui/data_displays.rb in roby-0.7.3 vs lib/roby/log/gui/data_displays.rb in roby-0.8.0
- old
+ new
@@ -33,16 +33,15 @@
edit(streams[index.row])
emit dataChanged(index, index)
end
def insertRow(row, parent)
- emit beginInsertRows(parent, row, row)
- if stream = edit(nil)
- @streams.insert row, stream
+ if streams = edit(nil)
+ streams.each do |s|
+ add_new(s)
+ end
return true
end
- ensure
- emit endInsertRows()
end
def removeRow(row, parent)
emit beginRemoveRows(parent, row, row)
@streams.delete_at row