Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Fixed following uri related issues:-
Browse files Browse the repository at this point in the history
(1) Relative urls - Link pointing to relative path now opens correctly
(2) URLs without http:// in front of it. e.g. "www.google.com"
  • Loading branch information
jangid committed Sep 30, 2011
1 parent 6ffcf3c commit a97c797
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/pdfconverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@ void PdfConverterPrivate::findLinks(QWebFrame * frame, QVector<QPair<QWebElement
local.push_back( qMakePair(elm, href.toString()) );
}
}
} else if (uexternal)
external.push_back( qMakePair(elm, href.toString() ) );
} else if (uexternal) {
// pass the unresolved url to WebKit. WebKit will resolve it
// depending upon the type of url - filepath, web-uri etc.
external.push_back( qMakePair(elm, h) );
}
}
}
}
Expand Down

0 comments on commit a97c797

Please sign in to comment.