File: 0008-grc-qt-fix-broken-complexity-calculation.patch

package info (click to toggle)
gnuradio 3.10.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 41,196 kB
  • sloc: cpp: 191,540; python: 91,856; ansic: 2,292; xml: 999; fortran: 927; sh: 477; makefile: 50
file content (26 lines) | stat: -rw-r--r-- 923 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From fac10cc2a4f34b26e0c8e9e06e954abb02cc9fa1 Mon Sep 17 00:00:00 2001
From: Zaky Hermawan <zaky.hermawan9615@gmail.com>
Date: Fri, 14 Feb 2025 05:44:10 +0700
Subject: [PATCH 08/41] grc-qt: fix broken complexity calculation

Signed-off-by: Zaky Hermawan <zaky.hermawan9615@gmail.com>
---
 grc/gui_qt/components/canvas/block.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grc/gui_qt/components/canvas/block.py b/grc/gui_qt/components/canvas/block.py
index 3c41027acc..c6efe27e64 100755
--- a/grc/gui_qt/components/canvas/block.py
+++ b/grc/gui_qt/components/canvas/block.py
@@ -72,7 +72,7 @@ class GUIBlock(QGraphicsItem):
     def __init__(self, core, parent, **n):
         super(GUIBlock, self).__init__()
         self.core = core
-        self.parent = self.scene()
+        self.parent = parent
         self.font = QFont("Helvetica", 10)
 
         self.create_shapes_and_labels()
-- 
2.47.3