Skip to content

Commit

Permalink
add xslx filter
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 authored and github-actions[bot] committed Dec 19, 2021
1 parent 68a1e6e commit 86778ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/ogr/qgsvectorlayersaveasdialog.cpp
Expand Up @@ -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() &&
Expand Down

0 comments on commit 86778ea

Please sign in to comment.