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
01cbb91a
Commit
01cbb91a
authored
May 04, 2021
by
Wolfgang Rohdewald
Browse files
Tables: fix possible color problem
parent
1eda22b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tables.py
View file @
01cbb91a
...
...
@@ -131,7 +131,7 @@ class TablesModel(QAbstractTableModel):
result
=
i18n
((
table
.
myRuleset
if
table
.
myRuleset
else
table
.
ruleset
).
name
)
elif
role
==
Qt
.
ForegroundRole
:
palette
=
KApplication
.
palette
()
color
=
palette
.
windowText
()
if
table
.
myRuleset
else
'red'
color
=
palette
.
windowText
()
.
color
()
if
table
.
myRuleset
else
'red'
result
=
QColor
(
color
)
return
result
...
...
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