Skip to content

Commit

Permalink
Remove another use of old iface methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 53160c7 commit 2e94f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -1367,12 +1367,12 @@ void QgsProjectProperties::on_pbnWMSSetUsedSRS_clicked()

void QgsProjectProperties::on_mAddWMSComposerButton_clicked()
{
QSet<QgsComposer *> projectComposers = QgisApp::instance()->printComposers();
QList<QgsComposition *> projectComposers = QgsProject::instance()->layoutManager()->compositions();
QStringList composerTitles;
QSet<QgsComposer *>::const_iterator cIt = projectComposers.constBegin();
QList<QgsComposition *>::const_iterator cIt = projectComposers.constBegin();
for ( ; cIt != projectComposers.constEnd(); ++cIt )
{
composerTitles << ( *cIt )->title();
composerTitles << ( *cIt )->name();
}

bool ok;
Expand Down

0 comments on commit 2e94f7d

Please sign in to comment.