diff --git a/Pdf4QtViewer/pdfprogramcontroller.cpp b/Pdf4QtViewer/pdfprogramcontroller.cpp index d0d7656..3f0533d 100644 --- a/Pdf4QtViewer/pdfprogramcontroller.cpp +++ b/Pdf4QtViewer/pdfprogramcontroller.cpp @@ -2056,7 +2056,7 @@ void PDFProgramController::closeDocument() QSettings settings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName()); settings.beginGroup("LastOpenedDocumentPages"); - settings.setValue(m_fileInfo.absoluteFilePath, pages.front()); + settings.setValue(m_fileInfo.absoluteFilePath, int(pages.front())); settings.endGroup(); } }