no need to watch the locally downloaded files of remote urls

svn path=/trunk/KDE/kdegraphics/okular/; revision=755441
This commit is contained in:
Pino Toscano 2008-01-01 15:59:18 +00:00
parent 0da4f3ebb8
commit 6848a3ec6a

View file

@ -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;