Be quiet
This commit is contained in:
		
					parent
					
						
							
								89632643aa
							
						
					
				
			
			
				commit
				
					
						e74c73db3c
					
				
			
		
					 1 changed files with 5 additions and 7 deletions
				
			
		| 
						 | 
					@ -26,7 +26,10 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <qjson/parser.h>
 | 
					#include <qjson/parser.h>
 | 
				
			||||||
#include <QtXml/QXmlStreamReader>
 | 
					#include <QtXml/QXmlStreamReader>
 | 
				
			||||||
#include <QDebug>
 | 
					
 | 
				
			||||||
 | 
					// KDE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <kdebug.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Danbooru {
 | 
					namespace Danbooru {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -38,16 +41,10 @@ namespace Danbooru {
 | 
				
			||||||
        KUrl danbooruUrl = KUrl(url);
 | 
					        KUrl danbooruUrl = KUrl(url);
 | 
				
			||||||
        danbooruUrl.addPath(path);
 | 
					        danbooruUrl.addPath(path);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        qDebug() << "Starting step URL" << danbooruUrl.url();
 | 
					 | 
				
			||||||
        qDebug() << "Tags" << tags;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        // If we have parameters, add them
 | 
					        // If we have parameters, add them
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!parameters.isEmpty()) {
 | 
					        if (!parameters.isEmpty()) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            qDebug() << "Handling parameters";
 | 
					 | 
				
			||||||
            qDebug() << "Adding" << parameters;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            QMap<QString, QString>::const_iterator iter;
 | 
					            QMap<QString, QString>::const_iterator iter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            for (iter = parameters.constBegin(); iter!= parameters.constEnd();
 | 
					            for (iter = parameters.constBegin(); iter!= parameters.constEnd();
 | 
				
			||||||
| 
						 | 
					@ -147,6 +144,7 @@ namespace Danbooru {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (values.isEmpty()) {
 | 
					                if (values.isEmpty()) {
 | 
				
			||||||
                    *result = false;
 | 
					                    *result = false;
 | 
				
			||||||
 | 
					                    kWarning() << "No results found when parsing XML";
 | 
				
			||||||
                    return QList<QVariant>();
 | 
					                    return QList<QVariant>();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue