Commit fb30260e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MediaLibrary: Don't hardcode new devices schemes

(cherry picked from commit 481bd42c)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 174644d4
......@@ -1641,7 +1641,8 @@ bool MediaLibrary::DeviceListerCb::onDeviceMounted( const std::string& uuid,
{
try
{
if ( Device::create( m_ml, uuid, "file://", true ) == nullptr )
if ( Device::create( m_ml, uuid, fsFactory->scheme(),
true ) == nullptr )
return false;
}
// And be conservative and assume another thread might have
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment