void CaptureFilePropertiesDialog::updateWidgets()
{
+ QPushButton *refresh_bt = ui->buttonBox->button(QDialogButtonBox::Reset);
QPushButton *save_bt = ui->buttonBox->button(QDialogButtonBox::Save);
+ QPushButton *copy_bt = ui->buttonBox->button(QDialogButtonBox::Apply);
+
if (!cap_file_) {
- refresh_button_->setEnabled(false);
+ if (refresh_bt) {
+ refresh_bt->setEnabled(false);
+ }
+ ui->detailsTextEdit->clear();
+ ui->commentsTextEdit->clear();
ui->commentsTextEdit->setReadOnly(true);
- save_bt->setEnabled(false);
+ if (save_bt) {
+ save_bt->setEnabled(false);
+ }
+ if (copy_bt) {
+ copy_bt->setEnabled(false);
+ }
return;
}