kernel-shark: Disable Capture if trace-cmd can't function
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.
Signed-off-by Yordan Karadzhov (VMware) <[email protected]>
--- kernel-shark/src/KsCaptureDialog.cpp | 3 +++ 1 file changed, 3 insertions(+)
kernel-shark/src/KsCaptureDialog.cpp +3 -0
@@ -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