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:
parent
fda12fb66d
commit
da220672b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue