diff --git a/Userland/Applications/PixelPaint/FilterGallery.cpp b/Userland/Applications/PixelPaint/FilterGallery.cpp index bdbfd27e6f..325e40b940 100644 --- a/Userland/Applications/PixelPaint/FilterGallery.cpp +++ b/Userland/Applications/PixelPaint/FilterGallery.cpp @@ -56,8 +56,10 @@ FilterGallery::FilterGallery(GUI::Window* parent_window, ImageEditor* editor) }; apply_button->on_click = [this](auto) { - if (!m_selected_filter) + if (!m_selected_filter) { done(ExecResult::ExecAborted); + return; + } m_selected_filter->apply(); done(ExecResult::ExecOK);