mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
fix double event when saving changes in options
This commit is contained in:
parent
6315efbf56
commit
a5025d3a66
@ -191,6 +191,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
|
||||
return;
|
||||
}
|
||||
}
|
||||
saveOptions();
|
||||
accept();
|
||||
} );
|
||||
|
||||
@ -200,7 +201,6 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
|
||||
connect( cmbIconSize, qOverload<int>( &QComboBox::highlighted ), this, &QgsOptions::iconSizeChanged );
|
||||
connect( cmbIconSize, &QComboBox::editTextChanged, this, &QgsOptions::iconSizeChanged );
|
||||
|
||||
connect( this, &QDialog::accepted, this, &QgsOptions::saveOptions );
|
||||
connect( this, &QDialog::rejected, this, &QgsOptions::rejectOptions );
|
||||
|
||||
QStringList styles = QStyleFactory::keys();
|
||||
@ -1466,15 +1466,6 @@ void QgsOptions::selectProjectOnLaunch()
|
||||
|
||||
void QgsOptions::saveOptions()
|
||||
{
|
||||
for ( QgsOptionsPageWidget *widget : std::as_const( mAdditionalOptionWidgets ) )
|
||||
{
|
||||
if ( !widget->isValid() )
|
||||
{
|
||||
setCurrentPage( widget->objectName() );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
QgsSettings settings;
|
||||
|
||||
mSettings->setValue( QStringLiteral( "UI/UITheme" ), cmbUITheme->currentText() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user