lib/knj/gtk2_tv.rb in knjrbfw-0.0.55 vs lib/knj/gtk2_tv.rb in knjrbfw-0.0.57

- old
+ new

@@ -106,13 +106,10 @@ #Gets the selected data from the treeview. #===Examples # Knj::Gtk2::Tv.sel(treeview) #=> [1, "Kasper"] def self.sel(tv) selected = tv.selection.selected_rows - - if !tv.model or selected.size <= 0 - return nil - end + return nil if !tv.model or selected.size <= 0 iter = tv.model.get_iter(selected[0]) returnval = [] columns = tv.columns \ No newline at end of file