no need to watch the locally downloaded files of remote urls

svn path=/trunk/KDE/kdegraphics/okular/; revision=755441
remotes/origin/KDE/4.0
Pino Toscano 18 years ago
parent 0da4f3ebb8
commit 6848a3ec6a
  1. 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…
Cancel
Save