Skip to content
Permalink
Browse files

Auto focus search box when opening "add layer to legend" dialog

Fixes #36905
  • Loading branch information
nyalldawson committed Jun 4, 2020
1 parent b5076e2 commit 019e494f1d61851ea192900a2cc9cce460d1ea73
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/layout/qgslayoutlegendlayersdialog.cpp
@@ -39,6 +39,8 @@ QgsLayoutLegendLayersDialog::QgsLayoutLegendLayersDialog( QWidget *parent )

connect( mFilterLineEdit, &QLineEdit::textChanged, mModel, &QgsMapLayerProxyModel::setFilterString );
connect( mCheckBoxVisibleLayers, &QCheckBox::toggled, this, &QgsLayoutLegendLayersDialog::filterVisible );

mFilterLineEdit->setFocus();
}

void QgsLayoutLegendLayersDialog::setVisibleLayers( const QList<QgsMapLayer *> &layers )

0 comments on commit 019e494

Please sign in to comment.
You can’t perform that action at this time.