mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #43: Save question
This commit is contained in:
@ -502,6 +502,13 @@ void PDFViewerMainWindow::closeEvent(QCloseEvent* event)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!m_programController->askForSaveDocumentBeforeClose())
|
||||
{
|
||||
// User cancelled close operation
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_programController->isFactorySettingsBeingRestored())
|
||||
{
|
||||
m_programController->writeSettings();
|
||||
|
Reference in New Issue
Block a user