mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
Make "Reloading in progress" visible while the file is being reloaded
This commit is contained in:
parent
a0135a3c8e
commit
8decf29df9
4
part.cpp
4
part.cpp
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue