Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joao Oliveira
Okular
Commits
6848a3ec
Commit
6848a3ec
authored
Jan 01, 2008
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to watch the locally downloaded files of remote urls
svn path=/trunk/KDE/kdegraphics/okular/; revision=755441
parent
0da4f3eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
part.cpp
part.cpp
+3
-2
No files found.
part.cpp
View file @
6848a3ec
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment