changeset 219:85e59c901de9

Use briefer filename for import command name
author Chris Cannam
date Thu, 14 Apr 2011 15:21:41 +0100
parents f702756154b0
children 0b1886cee2cf 67cea66bd588 025065fd5b49
files framework/MainWindowBase.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp	Thu Apr 07 15:20:53 2011 +0100
+++ b/framework/MainWindowBase.cpp	Thu Apr 14 15:21:41 2011 +0100
@@ -1205,7 +1205,7 @@
     } else if (mode == CreateAdditionalModel) {
 
 	CommandHistory::getInstance()->startCompoundOperation
-	    (tr("Import \"%1\"").arg(source.getLocation()), true);
+	    (tr("Import \"%1\"").arg(source.getBasename()), true);
 
 	m_document->addImportedModel(newModel);
 
@@ -1246,7 +1246,7 @@
         }
 
 	CommandHistory::getInstance()->startCompoundOperation
-	    (tr("Import \"%1\"").arg(source.getLocation()), true);
+	    (tr("Import \"%1\"").arg(source.getBasename()), true);
 
 	m_document->addImportedModel(newModel);