Skip to content

kcm/qml: Force unique queue name on add new printer, other small cleanup

Mike Noe requested to merge work/noee/unique-queue-name into master

Current code allows and existing queue name to be used when setting up a new printer. This has the side-effect of actually changing the existing printer with the name rather than adding a new printer. This change simply adds a check to make sure that when adding a printer, a unique name is used. If not, an appropriate banner message is displayed.

In addition, remove the unused and unneeded "autoconfig" tag from the add/change transaction object.

Discovered while testing internally.

Test:

Add a new printer using an existing queue name. A banner message will appear and you cannot add the printer until using a unique queue name.

Edited by Mike Noe

Merge request reports