widgets: do not set window modality without a parent
commit39e6740d8c08a90defbd155c6e5d0cc5e658df79
authorDavid Aguilar <davvid@gmail.com>
Fri, 20 Dec 2013 04:48:59 +0000 (19 20:48 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 20 Dec 2013 04:48:59 +0000 (19 20:48 -0800)
treec9171b15e96c81df27578567df436aa2c1e0ac82
parentfc623a4a8aeaf537430e00853b7a8cec66aca474
widgets: do not set window modality without a parent

Dialogs with a modality of Qt.WindowModal must always have a parent.
When these are run from the top-level, e.g. via `git cola grep`, then
the parent is `None` and we should not use Qt.WindowModal.

Signed-off-by: David Aguilar <davvid@gmail.com>
15 files changed:
bin/git-cola
cola/bookmarks.py
cola/guicmds.py
cola/widgets/archive.py
cola/widgets/browse.py
cola/widgets/cfgactions.py
cola/widgets/createbranch.py
cola/widgets/createtag.py
cola/widgets/editremotes.py
cola/widgets/grep.py
cola/widgets/main.py
cola/widgets/merge.py
cola/widgets/prefs.py
cola/widgets/remote.py
cola/widgets/stash.py