Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

clone: use message box functions of qtlib

Changeset d622a93f4ab3

Parent e79d8efcad31

by Yuki KODAMA

Changes to one file · Browse files at d622a93f4ab3 Showing diff from parent e79d8efcad31 Diff from another changeset...

 
18
19
20
21
 
22
23
24
 
180
181
182
183
184
185
186
187
188
189
 
 
 
190
191
192
193
194
195
196
197
198
199
200
 
 
 
201
202
203
 
18
19
20
 
21
22
23
24
 
180
181
182
 
 
 
 
 
 
 
183
184
185
186
187
188
189
 
 
 
 
 
 
 
190
191
192
193
194
195
@@ -18,7 +18,7 @@
   from tortoisehg.util import hglib  from tortoisehg.hgqt.i18n import _ -from tortoisehg.hgqt import cmdui +from tortoisehg.hgqt import cmdui, qtlib    class CloneDialog(QDialog):   @@ -180,24 +180,16 @@
    # verify input   if src == '': - msg = QMessageBox(self) - msg.setIcon(QMessageBox.Warning) - msg.setWindowTitle(_('TortoiseHg Clone')) - msg.setStandardButtons(QMessageBox.Close) - msg.setText(_('<b>Source path is empty</b>')) - msg.setInformativeText(_('<nobr>Please enter a valid source path.</nobr>')) - msg.exec_() + qtlib.ErrorMsgBox(_('TortoiseHg Clone'), + _('Source path is empty'), + _('Please enter a valid source path.'))   self.src_combo.setFocus()   return False     if src == dest: - msg = QMessageBox(self) - msg.setIcon(QMessageBox.Warning) - msg.setWindowTitle(_('TortoiseHg Clone')) - msg.setStandardButtons(QMessageBox.Close) - msg.setText(_('<b>Source and destination are the same</b>')) - msg.setInformativeText(_('<nobr>Please specify different paths.</nobr>')) - msg.exec_() + qtlib.ErrorMsgBox(_('TortoiseHg Clone'), + _('Source and destination are the same'), + _('Please specify different paths.'))   return False     if dest == os.getcwd():