lib/clevic/qt/browser.rb in clevic-0.13.0.b5 vs lib/clevic/qt/browser.rb in clevic-0.13.0.b6

- old
+ new

@@ -127,13 +127,14 @@ # Add all existing model objects as tabs, one each views.each do |view_class| begin view = view_class.new - unless view.entity_class.table_exists? - puts "No table for #{view.entity_class.inspect}" - next - end + + # This will raise an exception if we can't talk to the + # table. Returns nil if there is an empty table, which is + # also fine. + view.entity_class.first # create the the table_view and the table_model for the entity_class tab = Clevic::TableView.new( view ) # show status messages