Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgImportDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -18,6 +18,7 @@
 from .Ui_HgImportDialog import Ui_HgImportDialog
 
 import Utilities
+import UI.PixmapCache
 
 
 class HgImportDialog(QDialog, Ui_HgImportDialog):
@@ -33,6 +34,8 @@
         super(HgImportDialog, self).__init__(parent)
         self.setupUi(self)
         
+        self.patchFileButton.setIcon(UI.PixmapCache.getIcon("open.png"))
+        
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
         
         self.__patchFileCompleter = E5FileCompleter(self.patchFileEdit)
@@ -66,9 +69,9 @@
         """
         fn = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Select patch file"),
+            self.tr("Select patch file"),
             self.patchFileEdit.text(),
-            self.trUtf8("Patch Files (*.diff *.patch);;All Files (*)"))
+            self.tr("Patch Files (*.diff *.patch);;All Files (*)"))
         
         if fn:
             self.patchFileEdit.setText(Utilities.toNativeSeparators(fn))

eric ide

mercurial