add-printer: Fix crasher at startup (when loading DevicesModel)
After 866924f8 (master), kde-add-printer fails at startup with:
QDBusPendingReply: type QList<QList<QString>> is not registered with QtDBus
Aborted (core dumped)
Apparently in the Widgets app, QList<QStringList>
is not implicitly registered when using the QDBusPendingReply/watcher
pattern. So, explicitly register the type.
While this app is deprecated and no longer in any user work-path, it is still useful for fallback testing and debugging.
Test: After applying this MR, run kde-add-printer --add-printer
, authorize and you should see a list of devices, the app does not crash.
Edited by Mike Noe