개정판 47a4970e
issue #501: fix symbol add manually
DTI_PID/DTI_PID/SymbolTreeWidget.py | ||
---|---|---|
252 | 252 |
def startDrag(self, dropAction): |
253 | 253 |
try: |
254 | 254 |
items = self.selectedItems() |
255 |
if items: |
|
255 |
if items and hasattr(items[0], 'svgFilePath'):
|
|
256 | 256 |
symData = items[0].data(0, self.TREE_DATA_ROLE) |
257 | 257 |
pixmap = QPixmap(items[0].svgFilePath) |
258 | 258 |
|
내보내기 Unified diff