src/eric7/ViewManager/ViewManager.py

branch
eric7
changeset 10463
03e11d19e383
parent 10439
21c28b0f9e41
child 10465
56a3364150b1
equal deleted inserted replaced
10462:c8503ea3bd22 10463:03e11d19e383
6579 Private method to handle the delete action. 6579 Private method to handle the delete action.
6580 """ 6580 """
6581 if QApplication.focusWidget() == ericApp().getObject("Shell"): 6581 if QApplication.focusWidget() == ericApp().getObject("Shell"):
6582 ericApp().getObject("Shell").clear() 6582 ericApp().getObject("Shell").clear()
6583 else: 6583 else:
6584 self.activeWindow().clear() 6584 if EricMessageBox.yesNo(
6585 self,
6586 self.tr("Clear Editor"),
6587 self.tr("Do you really want to delete all text of the current editor?"),
6588 ):
6589 self.activeWindow().clear()
6585 6590
6586 def __editJoin(self): 6591 def __editJoin(self):
6587 """ 6592 """
6588 Private method to handle the join action. 6593 Private method to handle the join action.
6589 """ 6594 """

eric ide

mercurial