Merge pull request #183 from ankitest/patch-10
Otherwise showText never saves Geometry
This commit is contained in:
commit
0b0a4cb754
@ -71,6 +71,10 @@ def showText(txt, parent=None, type="text", run=True, geomKey=None, \
|
|||||||
saveGeom(diag, geomKey)
|
saveGeom(diag, geomKey)
|
||||||
QDialog.reject(diag)
|
QDialog.reject(diag)
|
||||||
box.rejected.connect(onReject)
|
box.rejected.connect(onReject)
|
||||||
|
def onFinish():
|
||||||
|
if geomKey:
|
||||||
|
saveGeom(diag, geomKey)
|
||||||
|
box.finished.connect(onFinish)
|
||||||
diag.setMinimumHeight(minHeight)
|
diag.setMinimumHeight(minHeight)
|
||||||
diag.setMinimumWidth(minWidth)
|
diag.setMinimumWidth(minWidth)
|
||||||
if geomKey:
|
if geomKey:
|
||||||
|
Loading…
Reference in New Issue
Block a user