diff --git a/qubesmanager/log_dialog.py b/qubesmanager/log_dialog.py index f89c684..98ca5d8 100644 --- a/qubesmanager/log_dialog.py +++ b/qubesmanager/log_dialog.py @@ -58,7 +58,7 @@ class LogDialog(ui_logdlg.Ui_LogDialog, QtGui.QDialog): if log.tell() > LOG_DISPLAY_SIZE: self.displayed_text = self.tr( "(Showing only last %d bytes of file)\n") % LOG_DISPLAY_SIZE - log.seek(-LOG_DISPLAY_SIZE, os.SEEK_END) + log.seek(log.tell()-LOG_DISPLAY_SIZE, os.SEEK_SET) else: log.seek(0, os.SEEK_SET) self.displayed_text += log.read()