7 Module implementing a dialog to show the guards of a selected patch. |
7 Module implementing a dialog to show the guards of a selected patch. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer |
12 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QListWidgetItem |
13 from PyQt4.QtGui import QDialog, QListWidgetItem |
14 |
14 |
15 from .Ui_HgQueuesListGuardsDialog import Ui_HgQueuesListGuardsDialog |
15 from .Ui_HgQueuesListGuardsDialog import Ui_HgQueuesListGuardsDialog |
16 |
16 |
17 import Preferences |
17 import Preferences |
36 self.process = QProcess() |
36 self.process = QProcess() |
37 self.vcs = vcs |
37 self.vcs = vcs |
38 self.__hgClient = vcs.getClient() |
38 self.__hgClient = vcs.getClient() |
39 |
39 |
40 self.patchSelector.addItems([""] + patchesList) |
40 self.patchSelector.addItems([""] + patchesList) |
|
41 |
|
42 self.show() |
|
43 QCoreApplication.processEvents() |
41 |
44 |
42 def closeEvent(self, e): |
45 def closeEvent(self, e): |
43 """ |
46 """ |
44 Private slot implementing a close event handler. |
47 Private slot implementing a close event handler. |
45 |
48 |