Index: src/providers/postgres/qgspostgresprovider.h =================================================================== --- src/providers/postgres/qgspostgresprovider.h (revision 8220) +++ src/providers/postgres/qgspostgresprovider.h (working copy) @@ -69,7 +69,7 @@ /** * Returns the permanent storage type for this layer as a friendly name. */ - QString storageType(); + virtual QString storageType() const; /*! Get the QgsSpatialRefSys for this layer * @note Must be reimplemented by each provider. Index: src/providers/postgres/qgspostgresprovider.cpp =================================================================== --- src/providers/postgres/qgspostgresprovider.cpp (revision 8220) +++ src/providers/postgres/qgspostgresprovider.cpp (working copy) @@ -334,7 +334,7 @@ connection = 0; } -QString QgsPostgresProvider::storageType() +QString QgsPostgresProvider::storageType() const { return "PostgreSQL database with PostGIS extension"; }