mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-13 18:04:32 +00:00
Qt: Fix canceling shader selection dialog (#3617)
This commit is contained in:
@@ -179,7 +179,7 @@ void PostProcessingChainConfigWidget::updateButtonsAndConfigPane(std::optional<u
|
||||
void PostProcessingChainConfigWidget::onAddButtonClicked()
|
||||
{
|
||||
PostProcessingSelectShaderDialog* dialog = new PostProcessingSelectShaderDialog(this);
|
||||
connect(dialog, &QDialog::finished, this, [this, dialog]() {
|
||||
connect(dialog, &QDialog::accepted, this, [this, dialog]() {
|
||||
const std::string selected_shader = dialog->getSelectedShader();
|
||||
if (selected_shader.empty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user