diff src/hgtabwidget.cpp @ 634:58ac1b197666

* Added setting to show history automatically when it changes (defaults to true)
author Sam Izzo <sam@humbug.net>
date Mon, 27 Aug 2012 01:45:26 +1000
parents 38c84c66ad7a
children ae67ea0af696
line wrap: on
line diff
--- a/src/hgtabwidget.cpp	Mon Aug 27 01:26:57 2012 +1000
+++ b/src/hgtabwidget.cpp	Mon Aug 27 01:45:26 2012 +1000
@@ -23,6 +23,7 @@
 #include <QClipboard>
 #include <QContextMenuEvent>
 #include <QApplication>
+#include <QSettings>
 
 #include <iostream>
 
@@ -281,7 +282,11 @@
 {
     m_historyWidget->parseIncrementalLog(hgLogList);
     if (m_historyWidget->haveNewItems()) {
-        showHistoryTab();
+        QSettings settings;
+        settings.beginGroup("Presentation");
+        if (settings.value("showHistoryAutomatically", true).toBool()) {
+            showHistoryTab();
+        }
     }
 }