[Kde-print-devel] [Bug 114402] New: Slashes in the printer name lead to unwanted tree leaves.

Tim Hutt tdh29 at cam.ac.uk
Fri Oct 14 16:43:56 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=114402         
           Summary: Slashes in the printer name lead to unwanted tree
                    leaves.
           Product: kdeprint
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-print-devel kde org
        ReportedBy: tdh29 cam ac uk


Version:            (using KDE KDE 3.4.2)
Installed from:    Unspecified Linux

For example, create a printer called:

My B/W Printer

And in the KPrintDialog instead of a plain combo box, it has a tree structure:

+My B
`---W Printer

Crazy :-)

I think the fix is in kdelibs/kdeprint/kprintdialog.cpp on line 571 change:

d->m_printers->insertItem(QPixmap(), QString::fromLatin1("--------"));

To:

d->m_printers->insertItem(QPixmap(), QString::fromLatin1("--------"), true);

Though I haven't tested it.


More information about the Kde-print-devel mailing list