From b84fd29abc6e6dfd8182c25149faac79e7fe32cc Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 18 Oct 2019 03:11:47 +0200 Subject: [PATCH] settings: fix performance overlay margin checkbox --- rpcs3/rpcs3qt/settings_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/settings_dialog.cpp b/rpcs3/rpcs3qt/settings_dialog.cpp index d26d4dbf2c..168f224edd 100644 --- a/rpcs3/rpcs3qt/settings_dialog.cpp +++ b/rpcs3/rpcs3qt/settings_dialog.cpp @@ -1186,8 +1186,8 @@ settings_dialog::settings_dialog(std::shared_ptr guiSettings, std: ui->perfOverlayUpdateInterval->setEnabled(enabled); ui->perfOverlayFontSize->setEnabled(enabled); ui->perfOverlayOpacity->setEnabled(enabled); - ui->perfOverlayMarginX->setEnabled(enabled); - ui->perfOverlayMarginY->setEnabled(enabled); + ui->perfOverlayMarginX->setEnabled(enabled && !ui->perfOverlayCenterX->isChecked()); + ui->perfOverlayMarginY->setEnabled(enabled && !ui->perfOverlayCenterY->isChecked()); ui->perfOverlayCenterX->setEnabled(enabled); ui->perfOverlayCenterY->setEnabled(enabled); };