Skip to content
Permalink
Browse files
add xslx filter
  • Loading branch information
roya0045 authored and nyalldawson committed Dec 19, 2021
1 parent b27daac commit 6c93b2adfeb45a2e7cd1ff9a60b3b9a7df6deb5b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/ogr/qgsvectorlayersaveasdialog.cpp
@@ -485,6 +485,12 @@ void QgsVectorLayerSaveAsDialog::mFormatComboBox_currentIndexChanged( int idx )
sFormat == QLatin1String( "FileGDB" ) ||
sFormat == QLatin1String( "SQLite" ) ||
sFormat == QLatin1String( "SpatiaLite" ) );

if ( sFormat == QLatin1String( "XLSX" ) )
leLayername->setMaxLength( 31 );
else if ( leLayername->isEnabled() )
leLayername->setMaxLength( 32767 ); // default length

if ( !leLayername->isEnabled() )
leLayername->setText( QString() );
else if ( leLayername->text().isEmpty() &&

0 comments on commit 6c93b2a

Please sign in to comment.