projects
/
qtgentools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ae9fdd7
)
fixed not emptying the model on "search failure" and "no results"
master
author
Ralphred
<Ralphred@liquid.me.uk>
Tue, 8 Oct 2024 09:25:25 +0000
(10:25 +0100)
committer
Ralphred
<Ralphred@liquid.me.uk>
Tue, 8 Oct 2024 09:25:25 +0000
(10:25 +0100)
pyqt6eix
patch
|
blob
|
history
diff --git
a/pyqt6eix
b/pyqt6eix
index f1af285ad94b91d188b5b5af68d1ce545cb8fb63..2e369d6741ba876c9ac96d3e7803d33f9d1d5166 100755
(executable)
--- a/
pyqt6eix
+++ b/
pyqt6eix
@@
-299,9
+299,13
@@
class MainWindow(QMainWindow, Ui_MainWindow):
data,excd=process.communicate()
if excd is not None or len(data)<17:
self.s_pbar.setFormat('Search Failed!!')
data,excd=process.communicate()
if excd is not None or len(data)<17:
self.s_pbar.setFormat('Search Failed!!')
+ self.s_clearResults()
+ self.s_lcd_results.display(0)
return
if data.split('\n')[0]=='No matches found':
self.s_pbar.setFormat('No matches found!!')
return
if data.split('\n')[0]=='No matches found':
self.s_pbar.setFormat('No matches found!!')
+ self.s_clearResults()
+ self.s_lcd_results.display(0)
return
self.s_pbar.setValue(0)
self.s_pbar.setFormat('Processing Data: Pass 1/2...')
return
self.s_pbar.setValue(0)
self.s_pbar.setFormat('Processing Data: Pass 1/2...')
@@
-369,6
+373,10
@@
class MainWindow(QMainWindow, Ui_MainWindow):
model.setHorizontalHeaderLabels(['Category|Overlay','Name|Version Type','Description|Version','Homepage|Use Flags' ])
return model
model.setHorizontalHeaderLabels(['Category|Overlay','Name|Version Type','Description|Version','Homepage|Use Flags' ])
return model
+ def s_clearResults(self):
+ model=self.s_createResultsModel()
+ self.s_tv_results.setModel(model)
+
def s_addResults(self,results):
model=self.s_createResultsModel()
prog=1
def s_addResults(self,results):
model=self.s_createResultsModel()
prog=1