Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix: only remount optical disks on device change, this should fix sec…

…ure remove of usb thumb drives
  • Loading branch information...
commit a72f722f02d6f80cd03ad031e3839bb158fedae2 1 parent d8c852e
Peter Frühberger fritsch authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 xbmc/storage/linux/UDisksProvider.cpp
5 xbmc/storage/linux/UDisksProvider.cpp
View
@@ -360,8 +360,9 @@ void CUDisksProvider::DeviceChanged(const char *object, IStorageEventsCallback *
else
{
bool mounted = device->m_isMounted;
-
- if (!mounted && g_advancedSettings.m_handleMounting)
+ /* make sure to not silently remount ejected usb thumb drives
+ that user wants to eject, but make sure to mount blurays */
+ if (!mounted && g_advancedSettings.m_handleMounting && device->m_isOptical)
device->Mount();
device->Update();
Please sign in to comment.
Something went wrong with that request. Please try again.