We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 495286a commit 78fde29Copy full SHA for 78fde29
src/app/legend/qgslegendlayer.cpp
@@ -540,6 +540,15 @@ void QgsLegendLayer::saveAsVectorFileGeneral( bool saveOnlySelection )
540
QgsVectorFileWriter::deleteShapeFile( vectorFilename );
541
}
542
543
+ //GE does not open files without extensions. Therefore we append it automatically for kml files
544
+ if ( format == "KML" )
545
+ {
546
+ if ( !vectorFilename.endsWith( ".kml", Qt::CaseInsensitive ) )
547
548
+ vectorFilename += ".kml";
549
+ }
550
551
+
552
// ok if the file existed it should be deleted now so we can continue...
553
QApplication::setOverrideCursor( Qt::WaitCursor );
554
0 commit comments