[gui][sensors] When applying sensor settings, disable apply button

This commit is contained in:
Mathieu Pellerin 2023-04-01 13:42:50 +07:00
parent 0068efdebe
commit 49d1be6739

View File

@ -55,6 +55,7 @@ QgsSensorSettingsWidget::QgsSensorSettingsWidget( QgsAbstractSensor *sensor, QWi
mButtonBox->button( QDialogButtonBox::Apply )->setEnabled( false );
connect( mButtonBox->button( QDialogButtonBox::Apply ), &QAbstractButton::clicked, this, [ = ]()
{
mButtonBox->button( QDialogButtonBox::Apply )->setEnabled( false );
apply();
} );