Changeset 4b6037343bad…
Parent 09ab8accf99d…
by
Changes to one file · Browse files at 4b6037343bad Showing diff from parent 09ab8accf99d Diff from another changeset...
@@ -218,15 +218,18 @@ shelve = hglib.fromunicode(dlg.textValue())
try:
fn = os.path.join('shelves', shelve)
- if os.path.exists(self.repo.join(fn)):
+ shelfpath = self.repo.join(fn)
+ if os.path.exists(shelfpath):
qtlib.ErrorMsgBox(_('File already exists'),
_('A shelf file of that name already exists'))
return
self.repo.opener(fn, 'wb').write('')
self.showMessage(_('New shelf created'))
+ self.refreshCombos()
+ if shelfpath in self.shelves:
+ self.combob.setCurrentIndex(self.shelves.index(shelfpath))
except EnvironmentError, e:
self.showMessage(hglib.tounicode(str(e)))
- self.refreshCombos()
@pyqtSlot()
def deleteShelfA(self):
|
Loading...