forked from qt-creator/qt-creator
Help plugin: Fix possible crash on documentation update.
We must not call updateFilterPage() when the "Options" dialog is not currently open. Without this patch, Creator will crash on a documentation update if that dialog has been opened at least once and is currently closed. Reviewed-by: kh1 Reviewed-by: con
This commit is contained in:
@@ -247,6 +247,12 @@ void FilterSettingsPage::apply()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FilterSettingsPage::finish()
|
||||||
|
{
|
||||||
|
disconnect(Core::HelpManager::instance(), SIGNAL(documentationChanged()),
|
||||||
|
this, SLOT(updateFilterPage()));
|
||||||
|
}
|
||||||
|
|
||||||
bool FilterSettingsPage::matches(const QString &s) const
|
bool FilterSettingsPage::matches(const QString &s) const
|
||||||
{
|
{
|
||||||
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
return m_searchKeywords.contains(s, Qt::CaseInsensitive);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public:
|
|||||||
|
|
||||||
QWidget *createPage(QWidget *parent);
|
QWidget *createPage(QWidget *parent);
|
||||||
void apply();
|
void apply();
|
||||||
void finish() {}
|
void finish();
|
||||||
virtual bool matches(const QString &s) const;
|
virtual bool matches(const QString &s) const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|||||||
Reference in New Issue
Block a user