mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-31 18:37:30 +01:00
One more fix for #150.
This commit is contained in:
parent
5f4ec58454
commit
2b98065da0
@ -44,7 +44,10 @@ QStringList NetworkFactory::extractFeedLinksFromHtmlPage(const QUrl &url, const
|
||||
QString href_attribute = rx_href.capturedTexts().at(0);
|
||||
QString feed_link = href_attribute.mid(6, href_attribute.size() - 7);
|
||||
|
||||
if (feed_link.startsWith(QL1C('/'))) {
|
||||
if (feed_link.startsWith(QL1S("//"))) {
|
||||
feed_link = QString(URI_SCHEME_HTTP) + feed_link.mid(2);
|
||||
}
|
||||
else if (feed_link.startsWith(QL1C('/'))) {
|
||||
feed_link = url.toString(QUrl::RemovePath | QUrl::RemoveQuery | QUrl::StripTrailingSlash) + feed_link;
|
||||
}
|
||||
|
||||
|
@ -208,7 +208,6 @@ void WebView::initializeActions() {
|
||||
|
||||
m_actionSaveImageAs = pageAction(QWebPage::DownloadImageToDisk);
|
||||
m_actionSaveImageAs->setParent(this);
|
||||
|
||||
m_actionSavePageAs = new QAction(qApp->icons()->fromTheme(QSL("document-download")), tr("Save page as..."), this);
|
||||
|
||||
#if QT_VERSION >= 0x040800
|
||||
|
Loading…
Reference in New Issue
Block a user