diff src/hgtabwidget.cpp @ 484:896b7903e8f2

Make "Show all files" persistent (fixing #203), and rationalise some config group names (noting that "General" is actually the default group "" as it appears in the config file, not the name of a group called "General": that appears as "%General")
author Chris Cannam
date Wed, 17 Aug 2011 16:09:04 +0100
parents ad106f5fe75f
children 1c05e7576ea5
line wrap: on
line diff
--- a/src/hgtabwidget.cpp	Wed Aug 17 15:53:17 2011 +0100
+++ b/src/hgtabwidget.cpp	Wed Aug 17 16:09:04 2011 +0100
@@ -37,8 +37,8 @@
     connect(m_fileStatusWidget, SIGNAL(selectionChanged()),
             this, SIGNAL(selectionChanged()));
 
-    connect(m_fileStatusWidget, SIGNAL(showAllChanged(bool)),
-            this, SIGNAL(showAllChanged(bool)));
+    connect(m_fileStatusWidget, SIGNAL(showAllChanged()),
+            this, SIGNAL(showAllChanged()));
 
     connect(m_fileStatusWidget, SIGNAL(annotateFiles(QStringList)),
             this, SIGNAL(annotateFiles(QStringList)));
@@ -268,3 +268,8 @@
     setCurrentWidget(m_historyWidget);
 }
 
+bool HgTabWidget::shouldShowAll() const
+{
+    return m_fileStatusWidget->shouldShowAll();
+}
+