Related: tdf#150706 don't warn about already enabled LISTBOX_FILTER_LABEL

Change-Id: I31173693145d4121735c93f2a72126e743bd0c2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141010
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index 829e479..634764e 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
@@ -1361,6 +1361,10 @@ uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nC

void SAL_CALL SalGtkFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnable )
{
    // skip this built-in one which is Enabled by default
    if (nControlId == ExtendedFilePickerElementIds::LISTBOX_FILTER_SELECTOR && bEnable)
        return;

    SolarMutexGuard g;

    OSL_ASSERT( m_pDialog != nullptr );