* [PATCH v2] kernel-shark: Disable Capture if trace-cmd can't function
@ 2019-07-24 15:41 Yordan Karadzhov (VMware)
0 siblings, 0 replies; only message in thread
From: Yordan Karadzhov (VMware) @ 2019-07-24 15:41 UTC (permalink / raw)
To: rostedt; +Cc: linux-trace-devel, Yordan Karadzhov (VMware)
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 --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");
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-24 15:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24 15:41 [PATCH v2] kernel-shark: Disable Capture if trace-cmd can't function Yordan Karadzhov (VMware)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).