[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/print-manager/printer-manager-kcm
From: Daniel Nicoletti <dantti85-kde () yahoo ! com ! br>
Date: 2010-11-05 13:11:51
Message-ID: 20101105131151.E9804AC89E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1193296 by dantti:
Fixed another bug when we only have remote printers
M +1 -1 PrintKCM.cpp
M +4 -0 PrinterDescription.cpp
--- trunk/playground/base/print-manager/printer-manager-kcm/PrintKCM.cpp #1193295:1193296
@@ -44,7 +44,7 @@
PrintKCM::PrintKCM(QWidget *parent, const QVariantList &args)
: KCModule(PrintKCMFactory::componentData(), parent, args),
- m_lastError(0)
+ m_lastError(-1) // Force the error to run on the first time
{
KAboutData *aboutData;
aboutData = new KAboutData("kcm_print",
--- trunk/playground/base/print-manager/printer-manager-kcm/PrinterDescription.cpp #1193295:1193296
@@ -60,6 +60,7 @@
menu->addAction(actionPrintSelfTestPage);
actionCleanPrintHeads->setVisible(false);
actionPrintSelfTestPage->setVisible(false);
+ supplyLevelsPB->setEnabled(false);
maintenancePB->setMenu(menu);
}
@@ -153,6 +154,9 @@
void PrinterDescription::setCommands(const QStringList &commands)
{
+ // On the first time this method runs the list
+ // can be empty, so keep all objects initilized on the
+ // constructor
if (m_commands != commands) {
m_commands = commands;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic