Skip to content

Commit

Permalink
HANA: Don't show tooltip when no primary keys found
Browse files Browse the repository at this point in the history
  • Loading branch information
mrylov committed Dec 9, 2020
1 parent f17268a commit f83ba17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/hana/qgshanatablemodel.cpp
Expand Up @@ -48,7 +48,7 @@ void QgsHanaTableModel::addTableEntry( const QgsHanaLayerProperty &layerProperty
tip = tr( "Specify a geometry type in the '%1' column" ).arg( tr( "Data Type" ) );
else if ( wkbType != QgsWkbTypes::NoGeometry && srid == std::numeric_limits<int>::min() )
tip = tr( "Enter a SRID into the '%1' column" ).arg( tr( "SRID" ) );
else if ( !layerProperty.pkCols.empty() )
else if ( layerProperty.pkCols.size() > 1 )
tip = tr( "Select columns in the '%1' column that uniquely identify features of this layer" ).arg( tr( "Feature ID" ) );

QStandardItem *schemaNameItem = new QStandardItem( layerProperty.schemaName );
Expand Down

0 comments on commit f83ba17

Please sign in to comment.