Show/hide fix to temporary switches

This commit is contained in:
Mark Watkins 2011-12-01 16:10:06 +10:00
parent 56b663c99f
commit 4513edbbdb

View File

@ -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);