[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase
From:       André Wöbbeking <Woebbeking () web ! de>
Date:       2006-02-28 22:55:23
Message-ID: 1141167323.435027.23452.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 514655 by woebbe:

damn, I've to wait til the next snapshot update

 M  +3 -3      kdeprint/slave/kio_print.cpp  
 M  +5 -5      kicker/menuext/kdeprint/print_mnu.cpp  


--- trunk/KDE/kdebase/kdeprint/slave/kio_print.cpp #514654:514655
@@ -194,7 +194,7 @@
 			return;
 		}
 
-		QListIterator<KMPrinter*>	it(KMManager::self()->printerList());
+		QListIterator<KMPrinter*>	it(*(KMManager::self()->printerList()));
 		while (it.hasNext())
 		{
 			KMPrinter *itr = it.next();
@@ -801,7 +801,7 @@
 		mgr->addPrinter(prt->printerName(), type);
 	else
 	{
-		QListIterator<KMPrinter *> pit(KMManager::self()->printerList());
+		QListIterator<KMPrinter *> pit(*(KMManager::self()->printerList()));
 		while (pit.hasNext())
 		{
 			KMPrinter *itprint = pit.next();
@@ -868,7 +868,7 @@
 		mgr->removePrinter(prt->printerName(), type);
 	else
 	{
-		QListIterator<KMPrinter *> pit(KMManager::self()->printerList());
+		QListIterator<KMPrinter *> pit(*(KMManager::self()->printerList()));
 		while (pit.hasNext())
 		{
 			KMPrinter *pitCurrent = pit.next();
--- trunk/KDE/kdebase/kicker/menuext/kdeprint/print_mnu.cpp #514654:514655
@@ -78,14 +78,14 @@
     insertItem(SmallIconSet("fileprint"), i18n("Print File..."), KPRINTER_ID);
 
     // printer list
-    QList<KMPrinter*> l = KMManager::self()->printerList();
-    if (!l.isEmpty())
+    QList<KMPrinter*>    *l = KMManager::self()->printerList();
+    if (l && !l->isEmpty())
     {
         bool separatorInserted = false;
-        QListIterator<KMPrinter*> it(l);
-        while (it.hasNext())
+		QListIterator<KMPrinter*>       it(*l);
+		while (it.hasNext())
         {
-            KMPrinter *itprt = it.next();
+			KMPrinter *itprt = it.next();
             // no special, implicit or pure instances
             if (itprt->isSpecial() || itprt->isVirtual())
                 continue;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic