--- a/UI/ErrorLogDialog.py Sun Nov 17 12:24:45 2013 +0100 +++ b/UI/ErrorLogDialog.py Sun Nov 17 13:28:39 2013 +0100 @@ -19,11 +19,13 @@ """ Class implementing a dialog to display an error log. """ - def __init__(self, logFile, parent=None): + def __init__(self, logFile, showMode, parent=None): """ Constructor @param logFile name of the log file containing the error info (string) + @param showMode flag indicating to just show the error log message + (boolean) @param parent reference to the parent widget (QWidget) """ super().__init__(parent) @@ -33,6 +35,13 @@ .pixmap(32, 32) self.icon.setPixmap(pixmap) + if showMode: + self.icon.hide() + self.label.hide() + self.deleteButton.setText(self.trUtf8("Delete")) + self.keepButton.setText(self.trUtf8("Close")) + self.setWindowTitle(self.trUtf8("Error Log")) + self.__ui = parent self.__logFile = logFile