Skip to content

Commit

Permalink
Allow compile with gcc-4.8.5
Browse files Browse the repository at this point in the history
Change-Id: Ia3953e0318a97eabfd917dbefef3bbac65828287
Reviewed-by: Tobias Koenig <[email protected]>
Reviewed-by: Sérgio Martins <[email protected]>
  • Loading branch information
kollix authored and iamsergio committed Aug 14, 2018
1 parent b2c01ab commit ed87172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdfwidgets/qpdfview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void QPdfView::setDocument(QPdfDocument *document)
emit documentChanged(d->m_document);

if (d->m_document)
d->m_documentStatusChangedConnection = connect(d->m_document, &QPdfDocument::statusChanged, this, [d](){ d->documentStatusChanged(); });
d->m_documentStatusChangedConnection = connect(d->m_document.data(), &QPdfDocument::statusChanged, this, [d](){ d->documentStatusChanged(); });

d->m_pageNavigation->setDocument(d->m_document);
d->m_pageRenderer->setDocument(d->m_document);
Expand Down

0 comments on commit ed87172

Please sign in to comment.