diff framework/MainWindowBase.cpp @ 186:f694ee2567fe

* RDF importer: Features that are on different timeline URIs should go into separate models (_not_ just on separate signal URIs as there may not be any meaningful signal URIs) * FileSource: if a file is not found, try again assuming its name is encoded (not just in tolerant mode)
author Chris Cannam
date Thu, 15 Oct 2009 10:50:43 +0000
parents 9f49d0f1bd20
children 5a40619c72d8
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Fri Oct 02 13:56:10 2009 +0000
+++ b/framework/MainWindowBase.cpp	Thu Oct 15 10:50:43 2009 +0000
@@ -1620,6 +1620,8 @@
 {
     size_t rate = 0;
 
+    std::cerr << "MainWindowBase::openLayersFromRDF" << std::endl;
+
     ProgressDialog dialog(tr("Importing from RDF..."), true, 2000, this);
     connect(&dialog, SIGNAL(showing()), this, SIGNAL(hideSplash()));
 
@@ -1647,6 +1649,9 @@
     dialog.setMessage(tr("Importing from RDF..."));
 
     if (models.empty()) {
+        QMessageBox::critical
+            (this, tr("Failed to import RDF"),
+             tr("<b>Failed to import RDF</b><p>No suitable data models found for import from RDF document at \"%1\"</p>").arg(source.getLocation()));
         return FileOpenFailed;
     }