From 0745efcfebcc87959595e2ce9f7b705badc89a74 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sat, 24 Mar 2012 13:15:19 +0100 Subject: [PATCH] fix odf printer selection --- src/templates/office.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/templates/office.cpp b/src/templates/office.cpp index 5354a55..398b855 100644 --- a/src/templates/office.cpp +++ b/src/templates/office.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -55,13 +56,13 @@ static void confirmPrinter(QString&prn) printer->addItem(QCoreApplication::translate("office","(Default Printer)")); QListaprn=QPrinterInfo::availablePrinters(); int cprn=0; - QString cp=QSettings().value("officePrinter","").toString(); for(int i=0;iaddItem(s); - if(cp==prn)cprn=i+1; + if(s==prn)cprn=i+1; } printer->setCurrentIndex(cprn); +// qDebug()<<"printer selection"<addSpacing(10); vl->addStretch(1); QHBoxLayout*hl; -- 1.7.2.5