Make "Reloading in progress" visible while the file is being reloaded

This commit is contained in:
Fabio D'Urso 2012-12-01 01:16:59 +01:00
parent a0135a3c8e
commit 8decf29df9

View file

@ -1566,6 +1566,7 @@ void Part::slotDoFileDirty()
m_dirtyPageRotation = m_document->rotation();
// inform the user about the operation in progress
// TODO: Remove this line and integrate reload info in queryClose
m_pageView->displayMessage( i18n("Reloading the document...") );
}
@ -1573,6 +1574,9 @@ void Part::slotDoFileDirty()
if ( !closeUrl() )
return;
// inform the user about the operation in progress
m_pageView->displayMessage( i18n("Reloading the document...") );
if ( KParts::ReadWritePart::openUrl( m_oldUrl ) )
{
// on successful opening, restore the previous viewport