Skip to content

Commit

Permalink
Initially select report section when opening a report designer
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 23, 2018
1 parent 3f801b5 commit 37c8706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/layout/qgsreportorganizerwidget.cpp
Expand Up @@ -67,6 +67,10 @@ QgsReportOrganizerWidget::QgsReportOrganizerWidget( QWidget *parent, QgsLayoutDe
mButtonAddSection->setMenu( addMenu );
connect( mButtonRemoveSection, &QPushButton::clicked, this, &QgsReportOrganizerWidget::removeSection );
mButtonRemoveSection->setEnabled( false ); //disable until section clicked

// initially select report section
QModelIndex reportIndex = mSectionModel->indexForSection( report );
mViewSections->setCurrentIndex( reportIndex );
}

void QgsReportOrganizerWidget::setMessageBar( QgsMessageBar *bar )
Expand Down

0 comments on commit 37c8706

Please sign in to comment.