Skip to content
Permalink
Browse files
Spelling
  • Loading branch information
nyalldawson committed Jan 11, 2022
1 parent a3c1e1d commit e57c8e33963ae9251b420a0df3c37ec50fd3691e
Showing with 6 additions and 6 deletions.
  1. +5 −5 src/gui/qgsprojectionselectiondialog.cpp
  2. +1 −1 src/gui/qgsprojectionselectiondialog.h
@@ -135,17 +135,17 @@ void QgsCrsSelectionWidget::setShowNoCrs( bool show )
mComboCrsType->removeItem( 0 );
}

if ( show && mDeferedInvalidCrsSet )
if ( show && mDeferredInvalidCrsSet )
{
mComboCrsType->setCurrentIndex( 0 );
}

mBlockSignals--;

if ( mDeferedInvalidCrsSet )
if ( mDeferredInvalidCrsSet )
emit crsChanged();

mDeferedInvalidCrsSet = false;
mDeferredInvalidCrsSet = false;

emit hasValidSelectionChanged( hasValidSelection() );
}
@@ -171,7 +171,7 @@ bool QgsCrsSelectionWidget::hasValidSelection() const
{
if ( !mComboCrsType->currentData().isValid() )
return true;
else if ( mDeferedInvalidCrsSet )
else if ( mDeferredInvalidCrsSet )
return false;
else
{
@@ -211,7 +211,7 @@ void QgsCrsSelectionWidget::setCrs( const QgsCoordinateReferenceSystem &crs )
if ( mShowNoCrsOption )
mComboCrsType->setCurrentIndex( 0 );
else
mDeferedInvalidCrsSet = true;
mDeferredInvalidCrsSet = true;
}
else
{
@@ -139,7 +139,7 @@ class GUI_EXPORT QgsCrsSelectionWidget : public QgsPanelWidget, private Ui::QgsG

QString mNotSetText;
bool mShowNoCrsOption = false;
bool mDeferedInvalidCrsSet = false;
bool mDeferredInvalidCrsSet = false;
int mBlockSignals = 0;

};

0 comments on commit e57c8e3

Please sign in to comment.