Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
940c5685
Commit
940c5685
authored
Jan 08, 2021
by
Matthieu Gallien
🎵
Browse files
when using Baloo does not watch for changes itself
rely mostly on Baloo for changes notifications (not complete)
CCBUG: 409587
parent
5e39a543
Pipeline
#51203
passed with stage
in 9 minutes and 38 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/baloo/localbaloofilelisting.cpp
View file @
940c5685
...
...
@@ -170,12 +170,12 @@ void LocalBalooFileListing::newBalooFile(const QString &fileName)
auto
newFile
=
QUrl
::
fromLocalFile
(
fileName
);
auto
newTrack
=
scanOneFile
(
newFile
,
scanFileInfo
,
WatchChangedDirectories
|
WatchChangedFil
es
);
auto
newTrack
=
scanOneFile
(
newFile
,
scanFileInfo
,
DoNotWatchFileSystemChang
es
);
if
(
newTrack
.
isValid
())
{
QFileInfo
newFileInfo
(
fileName
);
addFileInDirectory
(
newFile
,
QUrl
::
fromLocalFile
(
newFileInfo
.
absoluteDir
().
absolutePath
()),
WatchChangedDirectories
|
WatchChangedFil
es
);
addFileInDirectory
(
newFile
,
QUrl
::
fromLocalFile
(
newFileInfo
.
absoluteDir
().
absolutePath
()),
DoNotWatchFileSystemChang
es
);
emitNewFiles
({
newTrack
});
}
...
...
@@ -401,9 +401,9 @@ void LocalBalooFileListing::triggerRefreshOfContent()
const
auto
currentDirectory
=
QUrl
::
fromLocalFile
(
scanFileInfo
.
absoluteDir
().
absolutePath
());
addFileInDirectory
(
newFileUrl
,
currentDirectory
,
WatchChangedDirectories
|
WatchChangedFil
es
);
addFileInDirectory
(
newFileUrl
,
currentDirectory
,
DoNotWatchFileSystemChang
es
);
const
auto
&
newTrack
=
scanOneFile
(
newFileUrl
,
scanFileInfo
,
WatchChangedDirectories
|
WatchChangedFil
es
);
const
auto
&
newTrack
=
scanOneFile
(
newFileUrl
,
scanFileInfo
,
DoNotWatchFileSystemChang
es
);
if
(
newTrack
.
isValid
())
{
newFiles
.
push_back
(
newTrack
);
...
...
Write
Preview
Supports
Markdown
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