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 |
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");
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(+)