Skip to content

Commit

Permalink
Fix save-as with dots
Browse files Browse the repository at this point in the history
Fixes #40864
  • Loading branch information
elpaso committed Jan 18, 2021
1 parent 32e5ec0 commit 8223435
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 8223435

Please sign in to comment.