Skip to content

Commit c3b3c37

Browse files
committed
Correctly update controls when trying to modify profiling session using invalid settings
1 parent ff37909 commit c3b3c37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

visualvm/profiler/src/com/sun/tools/visualvm/profiler/ApplicationProfilerView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ private void handleCPUProfiling() {
339339
internalChange = true;
340340
cpuButton.setSelected(false);
341341
internalChange = false;
342+
updateControlButtons();
342343
showCPUSettings();
343344
ProfilerDialogs.displayError(NbBundle.getMessage(ApplicationProfilerView.class, "MSG_Incorrect_CPU_settings")); // NOI18N
344345
} else {
@@ -370,6 +371,7 @@ private void handleMemoryProfiling() {
370371
internalChange = true;
371372
memoryButton.setSelected(false);
372373
internalChange = false;
374+
updateControlButtons();
373375
showMemorySettings();
374376
ProfilerDialogs.displayError(NbBundle.getMessage(ApplicationProfilerView.class, "MSG_Incorrect_Memory_settings")); // NOI18N
375377
} else {

0 commit comments

Comments
 (0)