--- zanshin-0.5.0/src/widgets/applicationcomponents.cpp +++ zanshin-0.5.0.new/src/widgets/applicationcomponents.cpp @@ -112,7 +112,7 @@ AvailablePagesView *ApplicationComponent ApplicationComponents *self = const_cast(this); self->m_availablePagesView = availablePagesView; - connect(self->m_availablePagesView, &AvailablePagesView::currentPageChanged, self, &ApplicationComponents::onCurrentPageChanged); + connect(self->m_availablePagesView.data(), &AvailablePagesView::currentPageChanged, self, &ApplicationComponents::onCurrentPageChanged); } return m_availablePagesView; --- zanshin-0.5.0/src/widgets/applicationcomponents.cpp +++ zanshin-0.5.0.new/src/widgets/applicationcomponents.cpp @@ -136,7 +136,7 @@ PageView *ApplicationComponents::pageView() const self->m_pageView = pageView; self->m_errorHandler->setPageView(pageView); - connect(self->m_pageView, &PageView::currentArtifactChanged, self, &ApplicationComponents::onCurrentArtifactChanged); + connect(self->m_pageView.data(), &PageView::currentArtifactChanged, self, &ApplicationComponents::onCurrentArtifactChanged); } return m_pageView;