mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-01 05:33:33 +00:00
no need to watch the locally downloaded files of remote urls
svn path=/trunk/KDE/kdegraphics/okular/; revision=755441
This commit is contained in:
parent
0da4f3ebb8
commit
6848a3ec6a
5
part.cpp
5
part.cpp
|
@ -786,7 +786,7 @@ bool Part::openFile()
|
|||
}
|
||||
|
||||
// set the file to the fileWatcher
|
||||
if ( !m_watcher->contains(localFilePath()) )
|
||||
if ( url().isLocalFile() && !m_watcher->contains( localFilePath() ) )
|
||||
m_watcher->addFile(localFilePath());
|
||||
|
||||
// if the 'OpenTOC' flag is set, open the TOC
|
||||
|
@ -856,7 +856,8 @@ bool Part::closeUrl()
|
|||
emit setWindowCaption("");
|
||||
emit enablePrintAction(false);
|
||||
m_realUrl = KUrl();
|
||||
if (!localFilePath().isEmpty()) m_watcher->removeFile(localFilePath());
|
||||
if ( url().isLocalFile() )
|
||||
m_watcher->removeFile( localFilePath() );
|
||||
if ( m_generatorGuiClient )
|
||||
factory()->removeClient( m_generatorGuiClient );
|
||||
m_generatorGuiClient = 0;
|
||||
|
|
Loading…
Reference in a new issue