308 |
308 |
309 if not itmseq: |
309 if not itmseq: |
310 continue |
310 continue |
311 |
311 |
312 # step 2: check if shortcut hides an already allocated |
312 # step 2: check if shortcut hides an already allocated |
313 if itmseq.startswith("%s+" % keystr): |
313 if itmseq.startswith("{0}+".format(keystr)): |
314 res = QMessageBox.warning(None, |
314 res = QMessageBox.warning(None, |
315 self.trUtf8("Edit shortcuts"), |
315 self.trUtf8("Edit shortcuts"), |
316 self.trUtf8(\ |
316 self.trUtf8(\ |
317 """<p><b>{0}</b> hides the <b>{1}</b> action. """ |
317 """<p><b>{0}</b> hides the <b>{1}</b> action. """ |
318 """Remove this binding?</p>""") |
318 """Remove this binding?</p>""") |
326 return True |
326 return True |
327 else: |
327 else: |
328 return False |
328 return False |
329 |
329 |
330 # step 3: check if shortcut is hidden by an already allocated |
330 # step 3: check if shortcut is hidden by an already allocated |
331 if keystr.startswith("%s+" % itmseq): |
331 if keystr.startswith("{0}+".format(itmseq)): |
332 res = QMessageBox.warning(None, |
332 res = QMessageBox.warning(None, |
333 self.trUtf8("Edit shortcuts"), |
333 self.trUtf8("Edit shortcuts"), |
334 self.trUtf8(\ |
334 self.trUtf8(\ |
335 """<p><b>{0}</b> is hidden by the """ |
335 """<p><b>{0}</b> is hidden by the """ |
336 """<b>{1}</b> action. """ |
336 """<b>{1}</b> action. """ |