comparison framework/MainWindowBase.cpp @ 219:85e59c901de9

Use briefer filename for import command name
author Chris Cannam
date Thu, 14 Apr 2011 15:21:41 +0100
parents 64dfa7d6171d
children 0b1886cee2cf 67cea66bd588
comparison
equal deleted inserted replaced
218:f702756154b0 219:85e59c901de9
1203 if (!source.isRemote()) m_audioFile = source.getLocalFilename(); 1203 if (!source.isRemote()) m_audioFile = source.getLocalFilename();
1204 1204
1205 } else if (mode == CreateAdditionalModel) { 1205 } else if (mode == CreateAdditionalModel) {
1206 1206
1207 CommandHistory::getInstance()->startCompoundOperation 1207 CommandHistory::getInstance()->startCompoundOperation
1208 (tr("Import \"%1\"").arg(source.getLocation()), true); 1208 (tr("Import \"%1\"").arg(source.getBasename()), true);
1209 1209
1210 m_document->addImportedModel(newModel); 1210 m_document->addImportedModel(newModel);
1211 1211
1212 AddPaneCommand *command = new AddPaneCommand(this); 1212 AddPaneCommand *command = new AddPaneCommand(this);
1213 CommandHistory::getInstance()->addCommand(command); 1213 CommandHistory::getInstance()->addCommand(command);
1244 break; 1244 break;
1245 } 1245 }
1246 } 1246 }
1247 1247
1248 CommandHistory::getInstance()->startCompoundOperation 1248 CommandHistory::getInstance()->startCompoundOperation
1249 (tr("Import \"%1\"").arg(source.getLocation()), true); 1249 (tr("Import \"%1\"").arg(source.getBasename()), true);
1250 1250
1251 m_document->addImportedModel(newModel); 1251 m_document->addImportedModel(newModel);
1252 1252
1253 if (replace) { 1253 if (replace) {
1254 m_document->removeLayerFromView(pane, replace); 1254 m_document->removeLayerFromView(pane, replace);