Skip to content

Commit

Permalink
Merge pull request #204 from kbwbe/devel
Browse files Browse the repository at this point in the history
fix not responsive buttons in constraint properties dialog
  • Loading branch information
kbwbe authored Feb 14, 2019
2 parents 280cf57 + f4d513f commit f1ac4b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion InitGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
__title__ = 'A2plus assembly Workbench - InitGui file'
__author__ = 'kbwbe'

A2P_VERSION = 'V0.3.6'
A2P_VERSION = 'V0.3.7'

import sys
PyVersion = sys.version_info[0]
Expand Down
13 changes: 0 additions & 13 deletions a2p_constraintDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,21 +807,8 @@ def __init__(self,constraintObject, mode):
doc = FreeCAD.activeDocument()
if doc != None:
solveConstraints(doc)

self.timer = QtCore.QTimer()
QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.onTimer)
self.timer.start(100)

self.cvw.activateWindow()


def onTimer(self):
# The dialog is not modal, so that still zooming/rotating is possible
# within the 3D view. As this widget then looses his input focus, it
# is activated by timer regularly.
#self.cvw.acceptButton.activateWindow() # pushe whole App to foreground, not so good.
self.cvw.acceptButton.setFocus()

def storeWindowCenterPosition(self):
# ConstraintDialog has Priority on storing its position
if a2plib.getConstraintDialogRef() != None:
Expand Down

0 comments on commit f1ac4b2

Please sign in to comment.