https://bugs.kde.org/show_bug.cgi?id=442459
Bug ID: 442459 Summary: Network devices (Samba shares) loose their type when being removed Product: frameworks-solid Version: 5.85.0 Platform: Manjaro OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: lu...@kde.org Reporter: alexander.reinho...@kdemail.net CC: kdelibs-b...@kde.org Target Milestone: --- SUMMARY When Samba shares are unmounted (removed), Solid::Device::isDeviceInterface() won't return Solid::DeviceInterface::NetworkShare as type. STEPS TO REPRODUCE 1. Connect a slot to the signal deviceAdded() and deviceRemoved() of Solid::DeviceNotifier::instance(), respectively. 2. Implement the following code in both slots: Solid::Device device(udi); if (device.isDeviceInterface(Solid::DeviceInterface::NetworkShare)) { qDebug() << "Success"; } else { qDebug() << "Failure"; } 3. Run the application. OBSERVED RESULT When mounting a Samba share, the output will be "Success". When unmounting that share afterwards, the output will always be "Failure". EXPECTED RESULT On both occasions "Success" is returned. SOFTWARE/OS VERSIONS Operating System: Manjaro Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 Kernel Version: 5.13.13-1-MANJARO (64-bit) Graphics Platform: X11 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.