개정판 007e6e3b
issue #000: fix project open dialog
Change-Id: Icf61fec822fe5c465ab7034f5e90afa2e40c64df
DTI_PID/DTI_PID/ProjectDialog.py | ||
---|---|---|
49 | 49 |
self.exec_() |
50 | 50 |
|
51 | 51 |
index = self.ui.comboBox.currentIndex() |
52 |
return self.ui.comboBox.itemData(index) |
|
52 |
if self.selectedProject is None: |
|
53 |
return None |
|
54 |
else: |
|
55 |
return self.ui.comboBox.itemData(index) |
|
53 | 56 |
|
54 | 57 |
def accept(self): |
55 | 58 |
""" |
... | ... | |
63 | 66 |
project.desc = prj_desc |
64 | 67 |
project.prj_unit = prj_unit |
65 | 68 |
AppDocData.instance().updateProjectUpdatedDate(project.getId(), desc=prj_desc, prj_unit=prj_unit) |
69 |
self.selectedProject = True |
|
66 | 70 |
|
67 | 71 |
QDialog.accept(self) |
68 | 72 |
|
내보내기 Unified diff