Qt: keep "Copy to clipboard" button active when closing the capture_file_properties_dialog

As the Capture File Properties window content is kept once the capture is closed, allow to copy it

Change-Id: I11466e102fcf75a31aaa22225861ad8bf27f89a8
Reviewed-on: https://code.wireshark.org/review/5942
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2014-12-21 10:28:03 +01:00
parent fda12fb66d
commit da220672b2
1 changed files with 0 additions and 4 deletions

View File

@ -92,7 +92,6 @@ 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_) {
if (refresh_bt) {
@ -102,9 +101,6 @@ void CaptureFilePropertiesDialog::updateWidgets()
if (save_bt) {
save_bt->setEnabled(false);
}
if (copy_bt) {
copy_bt->setEnabled(false);
}
return;
}