Showing with 3 additions and 0 deletions.
  1. +2 −0 python/plugins/sextante/grass/GrassAlgorithm.py
  2. +1 −0 src/app/qgisapp.cpp
2 changes: 2 additions & 0 deletions python/plugins/sextante/grass/GrassAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,14 @@ def processAlgorithm(self, progress):
# add output file to exported layers, to indicate that they are present in GRASS
self.exportedLayers[filename]= out.name
if isinstance(out, OutputVector):
filename = out.value
command = "v.out.ogr -ce input=" + out.name
command += " dsn=\"" + os.path.dirname(out.value) + "\""
command += " format=ESRI_Shapefile"
command += " olayer=" + os.path.basename(out.value)[:-4]
command += " type=auto"
commands.append(command)
# add output file to exported layers
self.exportedLayers[filename]= out.name

#4 Run GRASS
Expand Down
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
readSettings();
updateRecentProjectPaths();
updateProjectFromTemplates();
legendLayerSelectionChanged();
activateDeactivateLayerRelatedActions( NULL );

// create the notification widget for macros
Expand Down