Revision 75050f6...
Go back to digest for 4th August 2013Bug Fixes in KDE Base
Alex Fiestas committed changes in [kdelibs] solid/solid/backends/udev/udevmanager.cpp:
Always return an object if the device was of interest when added
Finally this nasty gets fixed, problem is easy:
-Udev calls deviceAdded
-We emit deviceAdded
-Device becomes invalid (in udev)
-UdevManager::createDevice is called, returns 0
-deviceRemoved is emit
-Q_ASSERT explodes because we returned 0.
This patch basically ensures that if the device was of interest when
deviceAdded was called a UdevDevice object is always returned even if
the device is dummy. That's the best we can do.
FIXED-IN: 4.11
File Changes
Modified 1 files
- solid/solid/backends/udev/udevmanager.cpp
1 files changed in total