Commit ba073b96 authored by Friedemann Kleint's avatar Friedemann Kleint

ABI: Fix a crash in the settings page.

parent 8d0c4772
......@@ -40,6 +40,8 @@
#include <coreplugin/icore.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>
#include <QtCore/QSignalMapper>
#include <QtCore/QTextStream>
#include <QtGui/QAction>
......@@ -532,12 +534,14 @@ QWidget *ToolChainOptionsPage::createPage(QWidget *parent)
void ToolChainOptionsPage::apply()
{
QTC_ASSERT(m_model, return; )
m_model->apply();
}
void ToolChainOptionsPage::finish()
{
m_model->discard();
if (m_model)
m_model->discard();
}
bool ToolChainOptionsPage::matches(const QString &s) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment