Skip to contentSkip to conversation

kernel-shark: Disable Capture if trace-cmd can't function

PATCH New Yordan Karadzhov (VMware) 1 participant 1 message Jul 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kernel-shark: Disable Capture if trace-cmd can't function

In the case of an error the "Capture" button of the Record dialog is disabled.

---
 kernel-shark/src/KsCaptureDialog.cpp | 3 +++
 1 file changed, 3 insertions(+)
kernel-shark/src/KsCaptureDialog.cpp +3 -0
index 2e6e8f9..888ffea 100644
@@ -74,6 +74,9 @@ KsCaptureControl::KsCaptureControl(QWidget *parent)
 		_topLayout.addWidget(errorLabel);
 
 		lamAddLine();
+
+		/* Disable "Capture" buttons. */
+		_captureButton.setDisabled(true);
 	}
 
 	pluginList.prepend("nop");
Signature · 1 line
2.20.1