Only show error info on single query; fix #8
This commit is contained in:
		
							parent
							
								
									f838773a8a
								
							
						
					
					
						commit
						eee7fde2b8
					
				@ -93,7 +93,9 @@ class QueryThread(QThread):
 | 
				
			|||||||
                    if self.manager.update(note, results, success_num):
 | 
					                    if self.manager.update(note, results, success_num):
 | 
				
			||||||
                        self.note_flush.emit(note)
 | 
					                        self.note_flush.emit(note)
 | 
				
			||||||
            except InvalidWordException:
 | 
					            except InvalidWordException:
 | 
				
			||||||
                showInfo(_("NO_QUERY_WORD"))
 | 
					                # only show error info on single query
 | 
				
			||||||
 | 
					                if self.manager.total == 1:
 | 
				
			||||||
 | 
					                    showInfo(_("NO_QUERY_WORD"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if self.manager:
 | 
					            if self.manager:
 | 
				
			||||||
                self.manager.queue.task_done()
 | 
					                self.manager.queue.task_done()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user