We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 139874b commit 199d03dCopy full SHA for 199d03d
src/plugins/grass/qgsgrassedit.cpp
@@ -846,15 +846,18 @@ void QgsGrassEdit::closeEdit(void)
846
delete mAttributes;
847
}
848
849
- mProvider->closeEdit();
+ mProvider->closeEdit(mNewMap);
850
851
hide();
852
853
// Add new layers
854
if ( mNewMap )
855
{
856
- QString uri = mProvider->getDataSourceUri();
857
- QChar sep = QDir::separator();
+ QString uri = QDir::cleanDirPath ( mProvider->getDataSourceUri() );
+ std::cerr << "uri = " << uri.ascii() << std::endl;
858
+ // Note: QDir::cleanPath is using '/' also on Windows
859
+ //QChar sep = QDir::separator();
860
+ QChar sep = '/';
861
862
QStringList split = QStringList::split ( sep, uri );
863
split.pop_back(); // layer
0 commit comments