7 Module implementing a dialog to define guards for patches. |
7 Module implementing a dialog to define guards for patches. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer |
12 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem |
14 |
14 |
15 from E5Gui import E5MessageBox |
15 from E5Gui import E5MessageBox |
16 |
16 |
17 from .Ui_HgQueuesDefineGuardsDialog import Ui_HgQueuesDefineGuardsDialog |
17 from .Ui_HgQueuesDefineGuardsDialog import Ui_HgQueuesDefineGuardsDialog |
47 self.plusButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
47 self.plusButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
48 self.minusButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
48 self.minusButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
49 |
49 |
50 self.__dirtyList = False |
50 self.__dirtyList = False |
51 self.__currentPatch = "" |
51 self.__currentPatch = "" |
|
52 |
|
53 self.show() |
|
54 QCoreApplication.processEvents() |
52 |
55 |
53 def closeEvent(self, e): |
56 def closeEvent(self, e): |
54 """ |
57 """ |
55 Private slot implementing a close event handler. |
58 Private slot implementing a close event handler. |
56 |
59 |