this, SLOT(updateView()));
connect(autoUpdateCB, SIGNAL(toggled(bool)),
updatePB, SLOT(setDisabled(bool)));
+ connect(autoUpdateCB, SIGNAL(toggled(bool)),
+ this, SLOT(updateView()));
connect(updatePB, SIGNAL(clicked()),
this, SLOT(updateView()));
void ViewSourceWidget::setBufferView(BufferView const * bv)
{
bv_ = bv;
+ setEnabled(bv ? true : false);
}
void GuiViewSource::updateView()
{
- if (!widget_->isEnabled() || widget_->autoUpdateCB->isChecked()) {
+ if (widget_->autoUpdateCB->isChecked()) {
widget_->setBufferView(bufferview());
widget_->updateView();
}