Fix bug 728 - "QFileDialog.getOpenFileNames never returns (hangs)"

Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2011-03-21 15:11:03 -03:00
commit 44f5f62618
3 changed files with 47 additions and 0 deletions

8
tests/QtGui/bug_728.py Normal file
View file

@ -0,0 +1,8 @@
from PySide.QtGui import *
from PySide.QtCore import *
app = QApplication([])
QTimer.singleShot(200, app.quit)
# This test for a dead lock in QFileDialog.getOpenFileNames, the test fail with a timeout if the dead lock exists.
QFileDialog.getOpenFileNames(None, "caption", QDir.homePath(), None, QFileDialog.DontUseNativeDialog)