mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Better debug messages for WSPR spotting issues
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6460 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									9e55d08eb6
								
							
						
					
					
						commit
						dc69144396
					
				@ -5016,9 +5016,10 @@ void MainWindow::uploadResponse(QString response)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  if (response == "done") {
 | 
					  if (response == "done") {
 | 
				
			||||||
    m_uploading=false;
 | 
					    m_uploading=false;
 | 
				
			||||||
  } else if (response == "Upload Failed") {
 | 
					 | 
				
			||||||
    m_uploading=false;
 | 
					 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
 | 
					    if (response.startsWith ("Upload Failed")) {
 | 
				
			||||||
 | 
					      m_uploading=false;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    qDebug () << "WSPRnet.org status:" << response;
 | 
					    qDebug () << "WSPRnet.org status:" << response;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -85,7 +85,7 @@ void WSPRNet::networkReply(QNetworkReply *reply)
 | 
				
			|||||||
      QString serverResponse = reply->readAll();
 | 
					      QString serverResponse = reply->readAll();
 | 
				
			||||||
      if( m_uploadType == 2) {
 | 
					      if( m_uploadType == 2) {
 | 
				
			||||||
        if (!serverResponse.contains(QRegExp("spot\\(s\\) added"))) {
 | 
					        if (!serverResponse.contains(QRegExp("spot\\(s\\) added"))) {
 | 
				
			||||||
          emit uploadStatus("Upload Failed");
 | 
					          emit uploadStatus(QString {"Upload Failed: %1"}.arg (serverResponse));
 | 
				
			||||||
          urlQueue.clear();
 | 
					          urlQueue.clear();
 | 
				
			||||||
          uploadTimer->stop();
 | 
					          uploadTimer->stop();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user