mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-30 16:29:40 +00:00
Whenever editing the file import, we deselect all items in the list and disable the edit and remove button to prevent errors. #125
This commit is contained in:
parent
520076abb6
commit
e68741cffe
@ -110,7 +110,7 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
editSelection();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
TableColumn column = new TableColumn(fileTable, SWT.LEFT);
|
||||
column.setText(textBundle.get("SourceColumnHeader")); //$NON-NLS-1$
|
||||
column.setWidth(130);
|
||||
@ -336,6 +336,9 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
getAddressText().dispose();
|
||||
getRawCheckBox().dispose();
|
||||
dialog.close();
|
||||
getRemoveButton().setEnabled(false);
|
||||
getEditButton().setEnabled(false);
|
||||
getFileTable().deselectAll();
|
||||
}
|
||||
});
|
||||
button = new Button(composite, SWT.PUSH);
|
||||
@ -343,6 +346,9 @@ public class ImportSelectFilesWizardPane extends WizardPane {
|
||||
dialog.setDefaultButton(button);
|
||||
button.addSelectionListener(new SelectionAdapter() {
|
||||
public void widgetSelected(SelectionEvent e) {
|
||||
getRemoveButton().setEnabled(false);
|
||||
getEditButton().setEnabled(false);
|
||||
getFileTable().deselectAll();
|
||||
try {
|
||||
// Make an attempt at validating before accepting the change
|
||||
ImportSpecification temp = new ImportSpecification(spec);
|
||||
|
Loading…
Reference in New Issue
Block a user