mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Update actions accordin to PDF 2.0 specification
This commit is contained in:
@ -516,7 +516,7 @@ void PDFViewerMainWindow::onActionTriggered(const pdf::PDFAction* action)
|
||||
|
||||
const pdf::PDFActionURI* typedAction = dynamic_cast<const pdf::PDFActionURI*>(currentAction);
|
||||
QByteArray URI = m_pdfDocument->getCatalog()->getBaseURI() + typedAction->getURI();
|
||||
QString urlString = QString::fromLatin1(URI);
|
||||
QString urlString = QString::fromUtf8(URI);
|
||||
QString message = tr("Would you like to open URL '%1'?").arg(urlString);
|
||||
if (QMessageBox::question(this, tr("Open URL"), message) == QMessageBox::Yes)
|
||||
{
|
||||
|
Reference in New Issue
Block a user