diff filestatuswidget.cpp @ 340:bb189827f6d1

Disable "Show All Files" when there's no repo; refuse to run Hg commands without working dir; increase first-start window size a bit
author Chris Cannam
date Tue, 15 Mar 2011 12:00:31 +0000
parents acfe9390d5c6
children 293d91cf44de
line wrap: on
line diff
--- a/filestatuswidget.cpp	Tue Mar 15 11:45:53 2011 +0000
+++ b/filestatuswidget.cpp	Tue Mar 15 12:00:31 2011 +0000
@@ -157,6 +157,7 @@
     layout->addItem(new QSpacerItem(8, 8), ++row, 0);
 
     m_showAllFiles = new QCheckBox(tr("Show all files"), this);
+    m_showAllFiles->setEnabled(false);
     layout->addWidget(m_showAllFiles, ++row, 0, Qt::AlignLeft);
     connect(m_showAllFiles, SIGNAL(toggled(bool)),
             this, SIGNAL(showAllChanged(bool)));
@@ -365,6 +366,9 @@
                 << endl;
         delete m_dateReference;
         m_dateReference = 0;
+        m_showAllFiles->setEnabled(false);
+    } else {
+        m_showAllFiles->setEnabled(true);
     }
 }