# HG changeset patch # User unc0rr # Date 1313517478 -14400 # Node ID 48ced03a9949a35dbf7311d9f127e62546f4614b # Parent cc43f382ed9ae7a6bd93475ce27e0854557dca8a Properly implement slot, connect signal from the object which actually sends it to the slot diff -r cc43f382ed9a -r 48ced03a9949 QTfrontend/pagedata.cpp --- a/QTfrontend/pagedata.cpp Mon Aug 15 16:57:36 2011 -0400 +++ b/QTfrontend/pagedata.cpp Tue Aug 16 21:57:58 2011 +0400 @@ -35,7 +35,7 @@ BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true); web = new QWebView(this); - connect(this, SIGNAL(linkClicked(const QUrl&)), this, SLOT(install(const QUrl&))); + connect(web, SIGNAL(linkClicked(const QUrl&)), this, SLOT(install(const QUrl&))); web->load(QUrl("http://m8y.org/hw/downloads/")); web->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks); pageLayout->addWidget(web, 0, 0, 1, 3); diff -r cc43f382ed9a -r 48ced03a9949 QTfrontend/pagedata.h --- a/QTfrontend/pagedata.h Mon Aug 15 16:57:36 2011 -0400 +++ b/QTfrontend/pagedata.h Tue Aug 16 21:57:58 2011 +0400 @@ -32,7 +32,7 @@ QPushButton *BtnBack; QWebView *web; -private: +private slots: void install(const QUrl &url); };