From 4513edbbdb53078c16d508d5d108aebae124128d Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 1 Dec 2011 16:10:06 +1000 Subject: [PATCH] Show/hide fix to temporary switches --- daily.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daily.cpp b/daily.cpp index 7dbb7fb9..fa09b15b 100644 --- a/daily.cpp +++ b/daily.cpp @@ -268,7 +268,7 @@ Daily::Daily(QWidget *parent,gGraphView * shared, MainWindow *mw) QString title=(*GraphView)[i]->title(); QPushButton *btn=new QPushButton(title,this); btn->setCheckable(true); - btn->setChecked(true); + btn->setChecked((*GraphView)[i]->visible()); GraphToggles[title]=btn; btn->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Minimum); ui->graphToggleArea->addWidget(btn);