From b6ad69d12cc1e21e64cd667188d576cefb0b2ce9 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Sat, 23 Jun 2012 11:43:39 +0300 Subject: [PATCH] show 'unkonwn'instead of '-1' in sublayers dialog (addresses #5844) --- src/providers/ogr/qgsogrprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ogr/qgsogrprovider.cpp b/src/providers/ogr/qgsogrprovider.cpp index 86beb6b93d5f..6847001420cb 100644 --- a/src/providers/ogr/qgsogrprovider.cpp +++ b/src/providers/ogr/qgsogrprovider.cpp @@ -485,7 +485,7 @@ QStringList QgsOgrProvider::subLayers() const default: geom = QString( "Unknown WKB: %1" ).arg( layerGeomType ); } - mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount ).arg( geom ); + mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount == -1 ? tr( "Unknown" ) : QString::number( theLayerFeatureCount ) ).arg( geom ); } return mSubLayerList;