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

List:       kde-commits
Subject:    [pairs/new_qml2] src: debug-- and cleanup
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2011-11-30 21:57:56
Message-ID: 20111130215756.83A38A60C9 () git ! kde ! org
[Download RAW message or body]

Git commit b550ae33f19121942d87838d8aaf7c97def4e27a by Aleix Pol.
Committed on 30/11/2011 at 22:57.
Pushed by apol into branch 'new_qml2'.

debug-- and cleanup

M  +3    -3    src/pairsview.cpp

http://commits.kde.org/pairs/b550ae33f19121942d87838d8aaf7c97def4e27a

diff --git a/src/pairsview.cpp b/src/pairsview.cpp
index 422aef6..14ecc00 100644
--- a/src/pairsview.cpp
+++ b/src/pairsview.cpp
@@ -169,10 +169,10 @@ void PairsView::newGame(const PairsTheme* theme, const QString& language, const
         else if(cardType == "sound") type = CARD_SOUND;
         else if(cardType == "video") type = CARD_VIDEO;
         else if(cardType == "word") type = CARD_WORD;
-        if(cardType == "logic") type = CARD_LOGIC;
-        if(cardType == "soundlogic") type = CARD_SOUNDLOGIC;
+        else if(cardType == "logic") type = CARD_LOGIC;
+        else if(cardType == "soundlogic") type = CARD_SOUNDLOGIC;
 
-        qDebug() << cardType << titem.name[type][language];
+//         qDebug() << cardType << titem.name[type][language];
 
         item1->setType(type, titem.name[type][language], theme);
         if(type == CARD_LOGIC || type == CARD_SOUNDLOGIC){
[prev in list] [next in list] [prev in thread] [next in thread] 

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