Fix SIGSEGV on Sections widget (#1004)

This commit is contained in:
Itay Cohen 2018-12-16 09:06:17 +02:00 committed by GitHub
parent 2b6e28d488
commit ab42756729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ void SectionsWidget::initSectionsTable()
{
sectionsTable = new CutterTreeView;
sectionsModel = new SectionsModel(&sections, this);
auto proxyModel = new SectionsProxyModel(sectionsModel, this);
proxyModel = new SectionsProxyModel(sectionsModel, this);
sectionsTable->setModel(proxyModel);
sectionsTable->setIndentation(10);