Skip to content

Commit

Permalink
new vector fix for win
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4847 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 14, 2006
1 parent 139874b commit 199d03d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/grass/qgsgrassedit.cpp
Expand Up @@ -846,15 +846,18 @@ void QgsGrassEdit::closeEdit(void)
delete mAttributes;
}

mProvider->closeEdit();
mProvider->closeEdit(mNewMap);

hide();

// Add new layers
if ( mNewMap )
{
QString uri = mProvider->getDataSourceUri();
QChar sep = QDir::separator();
QString uri = QDir::cleanDirPath ( mProvider->getDataSourceUri() );
std::cerr << "uri = " << uri.ascii() << std::endl;
// Note: QDir::cleanPath is using '/' also on Windows
//QChar sep = QDir::separator();
QChar sep = '/';

QStringList split = QStringList::split ( sep, uri );
split.pop_back(); // layer
Expand Down

0 comments on commit 199d03d

Please sign in to comment.