8000 qtutils: avoid redefining rgb · ag-python-qt/git-cola@559e9c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 559e9c5

Browse files
committed
qtutils: avoid redefining rgb
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 4429838 commit 559e9c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cola/qtutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ def link(url, text, palette=None):
286286
palette = QtGui.QPalette()
287287

288288
color = palette.color(QtGui.QPalette.Foreground)
289-
rgb = f'rgb({color.red()}, {color.green()}, {color.blue()})'
290-
scope = dict(rgb=rgb, text=text, url=url)
289+
rgb_color = f'rgb({color.red()}, {color.green()}, {color.blue()})'
290+
scope = dict(rgb=rgb_color, text=text, url=url)
291291

292292
return (
293293
"""

0 commit comments

Comments
 (0)
0