previously we'd add all devices which would then cause a crash when
trying to access them ->as<NetworkShare>() because they aren't
Details
Details
have kcm open, plug in usb stick, observe no crash
Diff Detail
Diff Detail
- Repository
- R102 KInfoCenter
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
This is because the device monitor emits all devices, not the query returning unwanted devices?
Comment Actions
Yep
connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceAdded, this, &SmbMountModel::addDevice);