diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/LoadRemotePatchWindow.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/LoadRemotePatchWindow.cpp b/src/gui/LoadRemotePatchWindow.cpp index c4bcd66f..6fff2ff9 100644 --- a/src/gui/LoadRemotePatchWindow.cpp +++ b/src/gui/LoadRemotePatchWindow.cpp @@ -76,12 +76,11 @@ LoadRemotePatchWindow::present(SharedPtr<PatchModel> patch, GraphObject::Propert " doap:name ?name ." "}")); - Redland::Query::Results results = query.run(*App::instance().world()->rdf_world(), model); - - for (Redland::Query::Results::iterator i = results.begin(); i != results.end(); ++i) { + SharedPtr<Redland::QueryResults> results(query.run(*App::instance().world()->rdf_world(), model)); + for (; !results->finished(); results->next()) { Gtk::TreeModel::iterator iter = _liststore->append(); - (*iter)[_columns._col_name] = (*i)["name"].to_string(); - (*iter)[_columns._col_uri] = (*i)["uri"].to_string(); + (*iter)[_columns._col_name] = results->get("name").to_string(); + (*iter)[_columns._col_uri] = results->get("uri").to_string(); } _treeview->columns_autosize(); |