aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWainer S. Moschetta2011-12-29 08:09:09 (EST)
committerOtavio Pontes2012-01-02 07:23:03 (EST)
commit6d63d525a4e4e62c1701abd872bc549940f52a4b (patch)
tree6b8d9db21085e11c627cf74eac2cab4beff6188f
parent63afc3c97a7df4ebf67662145f7b9b6d4af68038 (diff)
downloadorg.eclipse.linuxtools-6d63d525a4e4e62c1701abd872bc549940f52a4b.zip
org.eclipse.linuxtools-6d63d525a4e4e62c1701abd872bc549940f52a4b.tar.gz
org.eclipse.linuxtools-6d63d525a4e4e62c1701abd872bc549940f52a4b.tar.bz2
Perf: fix handler of single event selection
Changed PerfEventsTab to handle a single event selection in the same case as multiple events. Signed-off-by: Wainer S. Moschetta <wainersm@linux.vnet.ibm.com>
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/launch/PerfEventsTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/launch/PerfEventsTab.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/launch/PerfEventsTab.java
index c6faa0e..e655176 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/launch/PerfEventsTab.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/perf/launch/PerfEventsTab.java
@@ -300,7 +300,7 @@ public class PerfEventsTab extends AbstractLaunchConfigurationTab {
wconfig.setAttribute(PerfPlugin.ATTR_SelectedEvents, selectedEvents);
//Flag for multiple events
- if ((_chkDefaultEvent.getSelection() == false) && (selectedEvents.size() > 1)) {
+ if ((_chkDefaultEvent.getSelection() == false) && (selectedEvents.size() >= 1)) {
wconfig.setAttribute(PerfPlugin.ATTR_MultipleEvents, true);
} else {
wconfig.setAttribute(PerfPlugin.ATTR_MultipleEvents, false);