Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
378e4edf
Commit
378e4edf
authored
Dec 28, 2015
by
Hugo Beauzée-Luyssen
Browse files
Folder: Fix a crash when adding a non existing folder to the ignore list
parent
d072f148
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Folder.cpp
View file @
378e4edf
...
...
@@ -107,6 +107,8 @@ std::shared_ptr<Folder> Folder::create( DBConnection connection, const std::stri
bool
Folder
::
blacklist
(
DBConnection
connection
,
const
std
::
string
&
fullPath
)
{
auto
folderFs
=
FsFactory
->
createDirectory
(
fullPath
);
if
(
folderFs
==
nullptr
)
return
false
;
auto
deviceFs
=
folderFs
->
device
();
auto
device
=
Device
::
fromUuid
(
connection
,
deviceFs
->
uuid
()
);
if
(
device
==
nullptr
)
...
...
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