960 .format(Utilities.normabspath(self.ui.currentProg), status)) |
960 .format(Utilities.normabspath(self.ui.currentProg), status)) |
961 else: |
961 else: |
962 if self.ui.notificationsEnabled(): |
962 if self.ui.notificationsEnabled(): |
963 if self.ui.currentProg is None: |
963 if self.ui.currentProg is None: |
964 msg = self.trUtf8('The program has terminated with an exit' |
964 msg = self.trUtf8('The program has terminated with an exit' |
965 ' status of {0}.\n').format(status) |
965 ' status of {0}.').format(status) |
966 else: |
966 else: |
967 msg = self.trUtf8('"{0}" has terminated with an exit' |
967 msg = self.trUtf8('"{0}" has terminated with an exit' |
968 ' status of {1}.\n')\ |
968 ' status of {1}.')\ |
969 .format(Utilities.normabspath(self.ui.currentProg), status) |
969 .format(os.path.basename(self.ui.currentProg), status) |
970 self.ui.showNotification(UI.PixmapCache.getPixmap("debug48.png"), |
970 self.ui.showNotification(UI.PixmapCache.getPixmap("debug48.png"), |
971 self.trUtf8("Program terminated"), msg) |
971 self.trUtf8("Program terminated"), msg) |
972 else: |
972 else: |
973 if self.ui.currentProg is None: |
973 if self.ui.currentProg is None: |
974 self.appendStdout.emit( |
974 self.appendStdout.emit( |