Mercurial > hg > svapp
comparison framework/MainWindowBase.cpp @ 88:9c904ede116c
* Fix #1849722 annotation import focus
author | Chris Cannam |
---|---|
date | Wed, 06 Feb 2008 16:42:21 +0000 |
parents | 1b217963e53a |
children | 737b373246b5 |
comparison
equal
deleted
inserted
replaced
87:1b217963e53a | 88:9c904ede116c |
---|---|
1137 Layer *newLayer = m_document->createImportedLayer(model); | 1137 Layer *newLayer = m_document->createImportedLayer(model); |
1138 | 1138 |
1139 if (newLayer) { | 1139 if (newLayer) { |
1140 | 1140 |
1141 m_document->addLayerToView(pane, newLayer); | 1141 m_document->addLayerToView(pane, newLayer); |
1142 m_paneStack->setCurrentLayer(pane, newLayer); | |
1143 | |
1142 m_recentFiles.addFile(source.getLocation()); | 1144 m_recentFiles.addFile(source.getLocation()); |
1143 | 1145 |
1144 if (!source.isRemote()) { | 1146 if (!source.isRemote()) { |
1145 registerLastOpenedFilePath | 1147 registerLastOpenedFilePath |
1146 (FileFinder::LayerFile, | 1148 (FileFinder::LayerFile, |
1147 path); // for file dialog | 1149 path); // for file dialog |
1148 } | 1150 } |
1149 | 1151 |
1150 return FileOpenSucceeded; | 1152 return FileOpenSucceeded; |
1151 } | 1153 } |
1152 } | 1154 } |
1153 } catch (DataFileReaderFactory::Exception e) { | 1155 } catch (DataFileReaderFactory::Exception e) { |
1154 if (e == DataFileReaderFactory::ImportCancelled) { | 1156 if (e == DataFileReaderFactory::ImportCancelled) { |