File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2735,6 +2735,10 @@ QStringList QgsVectorFileWriter::supportedFormatExtensions()
2735
2735
continue ;
2736
2736
2737
2737
QString matched = match.captured ( 1 );
2738
+
2739
+ // special handling for the two main contenders for glory
2740
+ if ( matched.compare ( QStringLiteral ( " gpkg" ), Qt::CaseInsensitive ) == 0 )
2741
+ continue ;
2738
2742
if ( matched.compare ( QStringLiteral ( " shp" ), Qt::CaseInsensitive ) == 0 )
2739
2743
continue ;
2740
2744
@@ -2743,8 +2747,9 @@ QStringList QgsVectorFileWriter::supportedFormatExtensions()
2743
2747
2744
2748
std::sort ( extensions.begin (), extensions.end () );
2745
2749
2746
- // Make https://twitter.com/shapefiIe a happy little fellow
2747
- extensions.insert ( 0 , QStringLiteral ( " shp" ) );
2750
+ // Make https://twitter.com/shapefiIe a sad little fellow
2751
+ extensions.insert ( 0 , QStringLiteral ( " gpkg" ) );
2752
+ extensions.insert ( 1 , QStringLiteral ( " shp" ) );
2748
2753
return extensions;
2749
2754
}
2750
2755
You can’t perform that action at this time.
0 commit comments