From 1bfcb80755584253feda3f06f9aa661bdcea16ac Mon Sep 17 00:00:00 2001 From: Fredrik Kuivinen Date: Fri, 1 Jul 2005 23:08:05 +0200 Subject: [PATCH] Use rich text in the confirm commit dialog. --- main.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index b0dd042..397beb3 100755 --- a/main.py +++ b/main.py @@ -214,11 +214,11 @@ class MainWidget(qt.QMainWindow): return commitMsg = fixCommitMsgWhiteSpace(commitMsg) - if(qt.QMessageBox.question(self, "Commit - " + applicationName, - "Do you want to commit the following file(s):\n\n" + - indentMsg('\n'.join(selFileNames)) + '\n\n' + - 'with the commit message:\n\n' + - indentMsg(commitMsg), + if(qt.QMessageBox.question(self, "Confirm Commit - " + applicationName, + '

Do you want to commit the following file(s):

' + + '
' + '
'.join(selFileNames) + '
' + + '

with the commit message:

' + + '
' + commitMsg + '
', '&Yes', '&No')): return else: @@ -345,9 +345,6 @@ def fixCommitMsgWhiteSpace(msg): msg += '\n' return msg -def indentMsg(msg): - return ' ' + msg.replace('\n', ' \n') - class File: pass -- 2.11.4.GIT