Skip to content

Commit

Permalink
Merge pull request #41061 from elpaso/bugfix-gh40864-gpkg-save-as-dot…
Browse files Browse the repository at this point in the history
…s-in-name

Fix save-as with dots
  • Loading branch information
elpaso committed Jan 18, 2021
2 parents e953755 + 8223435 commit 6387a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -189,7 +189,7 @@ void QgsVectorLayerSaveAsDialog::setup()
if ( !filePath.isEmpty() && leLayername->isEnabled() )
{
QFileInfo fileInfo( filePath );
leLayername->setText( fileInfo.baseName() );
leLayername->setText( fileInfo.completeBaseName() );
}
mButtonBox->button( QDialogButtonBox::Ok )->setEnabled( !filePath.isEmpty() );
} );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsfilewidget.cpp
Expand Up @@ -500,7 +500,7 @@ QString QgsFileDropEdit::acceptableFilePath( QDropEvent *event ) const
}

QgsMimeDataUtils::UriList lst = QgsMimeDataUtils::decodeUriList( event->mimeData() );
for ( const QgsMimeDataUtils::Uri &u : lst )
for ( const QgsMimeDataUtils::Uri &u : qgis::as_const( lst ) )
{
if ( !rawPaths.contains( u.uri ) )
rawPaths.append( u.uri );
Expand Down

0 comments on commit 6387a42

Please sign in to comment.