Skip to content

Commit

Permalink
Fix #5 namespace multiselection
Browse files Browse the repository at this point in the history
  • Loading branch information
busimus committed May 15, 2018
1 parent 299f11d commit 5996f70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cutelog/logger_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,21 @@ def filterAcceptsRow(self, sourceRow, sourceParent):
path = tindex.internalPointer().path
if path == '':
result = True
break
if path:
name = record.name
# name is None for record added by method add_conn_closed_record().
if name is None:
result = False
elif name == path:
result = True
break
elif not self.selection_includes_children and name == path:
result = True
break
elif self.selection_includes_children and name.startswith(path + '.'):
result = True
break
else:
result = False
if result and self.search_filter:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
from setuptools.command.install import install


VERSION = '1.1.7'
VERSION = '1.1.8'


def build_qt_resources():
print('Compiling resources...')
from PyQt5 import pyrcc_main
pyrcc_main.processResourceFile(['cutelog/resources/resources.qrc'],
'cutelog/resources.py', False)
'cutelog/resources.py', False)
print('Resources compiled successfully')


Expand Down

0 comments on commit 5996f70

Please sign in to comment.