프로젝트

일반

사용자정보

개정판 ea6b6336

IDea6b63361a34f38fde325ba17b846e2aeb0ff680
상위 8fb62d43
하위 87aebe90

함의성이(가) 약 5년 전에 추가함

issue #700: fix user license for vietnam

Change-Id: I7b10db340b6e8c2b9fae8ae2fdce3ae19a322b66

차이점 보기:

DTI_PID/DTI_PID/App.py
122 122
    else:
123 123
        qtmodern.styles.darkorange(app)
124 124
    """
125
    if True:# == QLicenseDialog.check_license_key():
125
    if True == QLicenseDialog.check_license_key():
126 126
        dlg = Ui_Dialog()
127 127
        selectedProject = dlg.showDialog()
128 128
        if selectedProject is not None:
DTI_PID/DTI_PID/AppDocData.py
652 652
            if configs and 'DOFTECH' in configs[0].value:
653 653
                self.deleteAppConfigs('app', 'mode')
654 654
                configs = None
655
            else:
655
            elif configs:
656 656
                configs = [Config('app', 'mode', 'advanced')]
657
            else:
658
                self.deleteAppConfigs('app', 'mode')
657 659
        else:
658 660
            configs = None
659 661

  
DTI_PID/DTI_PID/License.py
136 136

  
137 137
        try:
138 138
            _translate = QCoreApplication.translate
139
            decoded = QLicenseDialog.decode(QLicenseDialog.KEY, self.license)
139
            origin_text = self.license
140
            decoded = QLicenseDialog.decode(QLicenseDialog.KEY, self.license.replace('DOFTECH', ''))
140 141
            if decoded.upper() == os.environ['COMPUTERNAME'].upper():
141 142
                appDocData = AppDocData.instance()
142 143

  
143 144
                # save license key
144 145
                configs = []
145
                configs.append(Config('app', 'license', self.license))
146
                configs.append(Config('app', 'license', origin_text))
146 147
                appDocData.saveAppConfigs(configs)
147 148
                # up to here
148 149

  

내보내기 Unified diff

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