mirror of https://github.com/JakubMelka/PDF4QT.git
Issue #54: Final bugfix
This commit is contained in:
parent
e9ca3a4a82
commit
e87b14dc3a
|
@ -2625,6 +2625,11 @@ void PDFProgramController::onActionBookmarkGoToPrevious()
|
|||
|
||||
void PDFProgramController::onActionBookmarkExport()
|
||||
{
|
||||
if (!m_pdfDocument)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QFileInfo fileInfo(m_fileInfo.originalFileName);
|
||||
QString saveFileName = QFileDialog::getSaveFileName(m_mainWindow, tr("Export Bookmarks As"), fileInfo.dir().absoluteFilePath(m_fileInfo.originalFileName).replace(".pdf", ".json"), tr("JSON (*.json);;All files (*.*)"));
|
||||
if (!saveFileName.isEmpty())
|
||||
|
@ -2635,6 +2640,11 @@ void PDFProgramController::onActionBookmarkExport()
|
|||
|
||||
void PDFProgramController::onActionBookmarkImport()
|
||||
{
|
||||
if (!m_pdfDocument)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
QFileInfo fileInfo(m_fileInfo.originalFileName);
|
||||
QString fileName = QFileDialog::getOpenFileName(m_mainWindow, tr("Select PDF document"), fileInfo.dir().absolutePath(), tr("JSON (*.json)"));
|
||||
if (!fileName.isEmpty())
|
||||
|
|
Loading…
Reference in New Issue