Skip to content
Permalink
Browse files
add xslx filter
  • Loading branch information
roya0045 authored and nyalldawson committed Dec 20, 2021
1 parent 668065f commit c1dc5498b8f39832a851f19a1bec523e32b5821c
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 c1dc549

Please sign in to comment.