Skip to content
Permalink
Browse files
Focus relevant page when a settings page reports that it is not valid
  • Loading branch information
nyalldawson committed Jan 14, 2022
1 parent 7cca797 commit 5dd6496768a3a3387daf3b8d18211634b58a2a66
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/options/qgsoptions.cpp
@@ -175,7 +175,10 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
for ( QgsOptionsPageWidget *widget : std::as_const( mAdditionalOptionWidgets ) )
{
if ( !widget->isValid() )
{
setCurrentPage( widget->objectName() );
return;
}
}
accept();
} );
@@ -1547,7 +1550,10 @@ void QgsOptions::saveOptions()
for ( QgsOptionsPageWidget *widget : std::as_const( mAdditionalOptionWidgets ) )
{
if ( !widget->isValid() )
{
setCurrentPage( widget->objectName() );
return;
}
}

QgsSettings settings;

0 comments on commit 5dd6496

Please sign in to comment.