프로젝트

일반

사용자정보

개정판 cf39a974

IDcf39a974b826fed95179689eda14bc1cbd61df89
상위 9fb1b1e6
하위 04a12f29, cf5d942b

백흠경이(가) 5년 이상 전에 추가함

issue #1061: fixed bug occurred when creating stream line

Change-Id: I1b8524fd950f8ca3cfe3c5488dc41e82e34f90ce

차이점 보기:

HYTOS/HYTOS/ItemTreeWidget.py
504 504
    lastSceneItems = None
505 505
    def sceneChanged(self, sceneItems):
506 506
        try:
507
            changedSceneItems = [item for item in sceneItems if ((issubclass(type(item), SymbolSvgItem) and type(item) is not QEngineeringErrorItem and type(item) is not QEngineeringEndBreakItem and type(item) is not QEngineeringFlowMarkItem) or (type(item) is QEngineeringNoteItem) or (type(item) is QEngineeringLineNoTextItem) 
507
            changedSceneItems = [item for item in sceneItems if ((issubclass(type(item), SymbolSvgItem) and type(item) is not QEngineeringErrorItem and type(item) is not QEngineeringEndBreakItem) or (type(item) is QEngineeringNoteItem) or (type(item) is QEngineeringLineNoTextItem) 
508 508
                                or (type(item) is QEngineeringUnknownItem)) and (not hasattr(item, 'treeItem') or item.treeItem is None)] # Sublist includes SymbolSvgItem
509 509
            first = [item for item in changedSceneItems if item.owner is None]
510 510
            second = [item for item in changedSceneItems if item.owner is not None]
HYTOS/HYTOS/MainWindow.py
2732 2732

  
2733 2733
    app = App(sys.argv)
2734 2734
    try:
2735
        if True == QLicenseDialog.check_license_key():
2736
            dlg = Ui_Dialog()
2737
            selectedProject = dlg.showDialog()
2738
            if selectedProject is not None:
2739
                AppDocData.instance().setCurrentProject(selectedProject)
2740
                app._mainWnd = MainWindow.instance()
2741
                app._mainWnd.show()
2742
                sys.exit(app.exec_())
2735
        #if True == QLicenseDialog.check_license_key():
2736
        dlg = Ui_Dialog()
2737
        selectedProject = dlg.showDialog()
2738
        if selectedProject is not None:
2739
            AppDocData.instance().setCurrentProject(selectedProject)
2740
            app._mainWnd = MainWindow.instance()
2741
            app._mainWnd.show()
2742
            sys.exit(app.exec_())
2743 2743
    except Exception as ex:
2744 2744
        print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
2745 2745
    finally:
HYTOS/HYTOS/Shapes/SymbolSvgItem.py
1201 1201
        from EngineeringReducerItem import QEngineeringReducerItem
1202 1202
        from EngineeringErrorItem import QEngineeringErrorItem
1203 1203
        from EngineeringEndBreakItem import QEngineeringEndBreakItem
1204
        from EngineeringFlowMarkItem import QEngineeringFlowMarkItem
1205 1204
        from AppDocData import AppDocData
1206 1205
        import uuid
1207 1206

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)