forked from qt-creator/qt-creator
Fix crash when filtering in the preferences.
Need to ensure creation of all tabs before even the proxy model is informed. Task-number: QTCREATORBUG-4272 Reviewed-by: Robert Loehning
This commit is contained in:
@@ -318,6 +318,8 @@ SettingsDialog::SettingsDialog(QWidget *parent) :
|
||||
|
||||
// The order of the slot connection matters here, the filter slot
|
||||
// opens the matching page after the model has filtered.
|
||||
connect(m_filterLineEdit, SIGNAL(filterChanged(QString)),
|
||||
this, SLOT(ensureAllCategoryWidgets()));
|
||||
connect(m_filterLineEdit, SIGNAL(filterChanged(QString)),
|
||||
m_proxyModel, SLOT(setFilterFixedString(QString)));
|
||||
connect(m_filterLineEdit, SIGNAL(filterChanged(QString)), this, SLOT(filter(QString)));
|
||||
|
||||
Reference in New Issue
Block a user