diff --git a/saoriview.cpp b/saoriview.cpp index 124dfbe..dd42238 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -537,7 +537,7 @@ } if (entry == nullptr) { entry = new SaoriViewEntry(j.toObject()["id"].toString().toLongLong(),ui->scrollAreaWidgetContents); - connect(entry,&SaoriViewEntry::anchorClicked,this,&SaoriView::linkClicked); + connect(entry,&SaoriViewEntry::linkClicked,this,&SaoriView::linkClicked); m_entries.insert(i,entry); qobject_cast(ui->scrollAreaWidgetContents->layout())->insertWidget(i,entry); news ++; diff --git a/saoriviewentry.cpp b/saoriviewentry.cpp index 59fafc4..2b34cc8 100644 --- a/saoriviewentry.cpp +++ b/saoriviewentry.cpp @@ -58,6 +58,8 @@ if (url.toString().left(3) == "cw:") { m_cw = m_cw ? false : true; setContent(m_original,m_cw); + } else { + emit linkClicked(url); } }); } diff --git a/saoriviewentry.h b/saoriviewentry.h index ba6a30d..fbb4647 100644 --- a/saoriviewentry.h +++ b/saoriviewentry.h @@ -60,6 +60,9 @@ protected slots: void downloaded(const QUrl url); +signals: + void linkClicked(const QUrl); + }; #endif // SAORIVIEWENTRY_H