diff mbox series

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

Message ID 20190724154110.23772-1-y.karadz@gmail.com (mailing list archive)
State Accepted
Commit 5f3fba3f09c87b7cb1e27b1b8b72387a0c427a0c
Headers show
Series [v2] kernel-shark: Disable Capture if trace-cmd can't function | expand

Commit Message

Yordan Karadzhov July 24, 2019, 3:41 p.m. UTC
In the case of an error the "Capture" button of the Record dialog is
disabled.

Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 kernel-shark/src/KsCaptureDialog.cpp | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/kernel-shark/src/KsCaptureDialog.cpp b/kernel-shark/src/KsCaptureDialog.cpp
index 2e6e8f9..888ffea 100644
--- a/kernel-shark/src/KsCaptureDialog.cpp
+++ b/kernel-shark/src/KsCaptureDialog.cpp
@@ -74,6 +74,9 @@  KsCaptureControl::KsCaptureControl(QWidget *parent)
 		_topLayout.addWidget(errorLabel);
 
 		lamAddLine();
+
+		/* Disable "Capture" buttons. */
+		_captureButton.setDisabled(true);
 	}
 
 	pluginList.prepend("nop");