개정판 9a7b2ea5
fix symbol tree
Change-Id: Iad9bd403fc3c3d8a13ee9c576fa75a83a2f73c0a
DTI_PID/DTI_PID/SymbolTreeWidget.py | ||
---|---|---|
395 | 395 |
index = self.currentIndex() |
396 | 396 |
proxy_model = self.model() |
397 | 397 |
items = [proxy_model.sourceModel().itemFromIndex(proxy_model.mapToSource(index))] |
398 |
if items and hasattr(items[0], 'svgFilePath'): |
|
398 |
if items and hasattr(items[0], 'svgFilePath') and os.path.exists(items[0].svgFilePath):
|
|
399 | 399 |
symData = items[0].data(self.TREE_DATA_ROLE) |
400 | 400 |
|
401 | 401 |
mime = QMimeData() |
내보내기 Unified diff