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
- Branch
- smb-type-check2
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 24206 Build 24224: arc lint + arc unit
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);