Issue #3053 - added check for selected items.

Change-Id: Iba7dff4291679524b03518790b0e183c3a980934

Former-commit-id: e054a7ab98 [formerly ca47394d9578aac17d1696bd78c0fbcee5fe3f8f]
Former-commit-id: 573465f316
This commit is contained in:
Lee Venable 2014-04-28 15:24:26 -05:00
parent d145961f4c
commit a8ab7f3946

View file

@ -311,9 +311,11 @@ public class ListSelectionDlg extends CaveSWTDialog {
*/
private void action() {
int choice = displayConfirmationBox();
if (choice == SWT.CANCEL) {
return;
if (selectList.getSelectionCount() == 0) {
int choice = displayConfirmationBox();
if (choice == SWT.CANCEL) {
return;
}
}
if (returnAsArray == ReturnArray.ARRAY_STRING_ITEMS) {