Skip to content
Permalink
Browse files

Fixed #1364.

Changed the behavior of the file selection dialog.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10960 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rugginoso
rugginoso committed Jun 19, 2009
1 parent 30de6af commit 69f76ccfc2f60def0fce848c7c60f9b9a112f300
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/plugins/grass/qgsgrassmodule.cpp
@@ -19,6 +19,7 @@
#include "qgsgrassselect.h"
#include "qgsgrasstools.h"
#include "qgsgrassprovider.h"
#include "qgsgrassutils.h"
#include "qgsgrass.h"

#include "qgisinterface.h"
@@ -1498,8 +1499,14 @@ void QgsGrassModule::viewOutput()
if ( onlyLayer1 && layers[j].left( 1 ) != "1" )
continue;

QStringList split = uri.split( '/', QString::SkipEmptyParts );
QString layer = split.last();

QString name = QgsGrassUtils::vectorLayerName(
map, layer, 1 );

// TODO vector layer name
mIface->addVectorLayer( uri, layers[j], "grass" );
mIface->addVectorLayer( uri, name, "grass" );
}
}

@@ -3100,7 +3107,7 @@ void QgsGrassModuleFile::browse()

if ( fd->exec() == QDialog::Accepted )
{
QString selectedFile = fd->selectedFiles().first();
QString selectedFile = fd->selectedFiles().last();
QFileInfo fi = QFileInfo(selectedFile);
currentDir = fi.absoluteDir();
if (mType == Multiple)

0 comments on commit 69f76cc

Please sign in to comment.
You can’t perform that action at this time.