diff options
-rw-r--r-- | src/maingui/printergui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp index 5e2ba39..f3a0b85 100644 --- a/src/maingui/printergui.cpp +++ b/src/maingui/printergui.cpp @@ -72,9 +72,9 @@ void PrinterGui::initializeUI() for (int i = num_dests; i>0; ++dest, --i ) if (dest->instance == NULL) { QTreeWidgetItem *wi = new QTreeWidgetItem(); - wi->setText(0, QString(dest->name)); - wi->setText(1, QString(cupsGetOption("printer-info", dest->num_options, dest->options))); - wi->setText(2, QString(cupsGetOption("printer-location", dest->num_options, dest->options))); + wi->setText(0, QString::fromUtf8(dest->name)); + wi->setText(1, QString::fromUtf8(cupsGetOption("printer-info", dest->num_options, dest->options))); + wi->setText(2, QString::fromUtf8(cupsGetOption("printer-location", dest->num_options, dest->options))); ui->printerList->addTopLevelItem(wi); if (dest->is_default) ui->printerList->setCurrentItem(wi); |