mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
open link content duplicated in all the tabs.
This commit is contained in:
parent
8e6f4c2c10
commit
e7218fc12b
|
@ -276,14 +276,14 @@ public slots:
|
|||
|
||||
/// Selects an entire text of the current article
|
||||
void selectCurrentArticle();
|
||||
|
||||
void linkClicked( QUrl const & );
|
||||
private slots:
|
||||
|
||||
void loadFinished( bool ok );
|
||||
void handleTitleChanged( QString const & title );
|
||||
void handleUrlChanged( QUrl const & url );
|
||||
void attachToJavaScript();
|
||||
void linkClicked( QUrl const & );
|
||||
|
||||
void linkHovered( const QString & link);
|
||||
void contextMenuRequested( QPoint const & );
|
||||
|
||||
|
|
|
@ -1672,7 +1672,12 @@ ArticleView * MainWindow::createNewTab( bool switchToIt,
|
|||
connect( view, SIGNAL( zoomIn()), this, SLOT( zoomin() ) );
|
||||
|
||||
connect( view, SIGNAL( zoomOut()), this, SLOT( zoomout() ) );
|
||||
connect (wuri,SIGNAL(linkClicked(QUrl)),view,SLOT(linkClicked(QUrl)));
|
||||
connect(wuri, &WebUrlRequestInterceptor::linkClicked, view, [=](QUrl url) {
|
||||
ArticleView *active = getCurrentArticleView();
|
||||
if (active == view) {
|
||||
view->linkClicked(url);
|
||||
}
|
||||
});
|
||||
|
||||
view->setSelectionBySingleClick( cfg.preferences.selectWordBySingleClick );
|
||||
|
||||
|
|
Loading…
Reference in a new issue