|
|
|
|
@ -603,6 +603,7 @@ void Part::slotDoFileDirty() |
|
|
|
|
if (m_viewportDirty.pageNumber == -1) |
|
|
|
|
{ |
|
|
|
|
m_viewportDirty = m_document->viewport(); |
|
|
|
|
m_dirtyToolboxIndex = m_toolBox->currentIndex(); |
|
|
|
|
m_wasPresentationOpen = ((PresentationWidget*)m_presentationWidget != 0); |
|
|
|
|
m_pageView->showText(i18n("Reloading the document..."), 0); |
|
|
|
|
} |
|
|
|
|
@ -612,6 +613,10 @@ void Part::slotDoFileDirty() |
|
|
|
|
if (m_viewportDirty.pageNumber >= (int)m_document->pages()) m_viewportDirty.pageNumber = (int)m_document->pages() - 1; |
|
|
|
|
m_document->setViewport(m_viewportDirty); |
|
|
|
|
m_viewportDirty.pageNumber = -1; |
|
|
|
|
if ( m_toolBox->currentIndex() != m_dirtyToolboxIndex && m_toolBox->isItemEnabled( m_dirtyToolboxIndex ) ) |
|
|
|
|
{ |
|
|
|
|
m_toolBox->setCurrentIndex( m_dirtyToolboxIndex ); |
|
|
|
|
} |
|
|
|
|
if (m_wasPresentationOpen) slotShowPresentation(); |
|
|
|
|
emit enablePrintAction(true); |
|
|
|
|
} |
|
|
|
|
|