Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored Nov 12, 2024
1 parent 9c5856a commit af0b4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsattributetypeloaddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void QgsAttributeTypeLoadDialog::createPreview( int fieldIndex, bool full )
}
const int idx = keyComboBox->currentIndex();
const int idx2 = valueComboBox->currentIndex();
QgsMapLayer *dataLayer = QgsProject::instance()->mapLayer( layerComboBox->currentLayer()->id() );
QgsMapLayer *dataLayer = layerComboBox->currentLayer();
QgsVectorLayer *vLayer = qobject_cast<QgsVectorLayer *>( dataLayer );
if ( !vLayer )
return;
Expand Down Expand Up @@ -133,7 +133,7 @@ void QgsAttributeTypeLoadDialog::loadDataToValueMap()
mValueMap.clear();
const int idx = keyComboBox->currentIndex();
const int idx2 = valueComboBox->currentIndex();
QgsMapLayer *dataLayer = QgsProject::instance()->mapLayer( layerComboBox->currentLayer()->id() );
QgsMapLayer *dataLayer = layerComboBox->currentLayer();
QgsVectorLayer *vLayer = qobject_cast<QgsVectorLayer *>( dataLayer );
if ( !vLayer )
return;
Expand Down

0 comments on commit af0b4fe

Please sign in to comment.