Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
724e5a09
Commit
724e5a09
authored
Dec 16, 2017
by
Wolfgang Rohdewald
Browse files
small code simplification
parent
2e1075ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/differ.py
View file @
724e5a09
...
...
@@ -52,7 +52,9 @@ class DifferModel(QAbstractTableModel):
def
data
(
self
,
index
,
role
=
Qt
.
DisplayRole
):
"""get from model"""
if
not
index
.
isValid
()
or
not
0
<=
index
.
row
()
<
len
(
self
.
diffs
):
if
not
index
.
isValid
():
return
if
not
0
<=
index
.
row
()
<
len
(
self
.
diffs
):
return
diff
=
self
.
diffs
[
index
.
row
()]
column
=
index
.
column
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment