Fix * Delete selection must be disabled when editing

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2915991
This commit is contained in:
Carlos Ruiz 2009-12-17 03:12:29 +00:00
parent fc169204e1
commit dbd0fa1a01
2 changed files with 2 additions and 6 deletions

View File

@ -1134,6 +1134,7 @@ public final class APanel extends CPanel
aCopy.setEnabled(!changed && insertRecord); aCopy.setEnabled(!changed && insertRecord);
aRefresh.setEnabled(!changed); aRefresh.setEnabled(!changed);
aDelete.setEnabled(!changed && !readOnly); aDelete.setEnabled(!changed && !readOnly);
aDeleteSelection.setEnabled(!changed && !readOnly);
// //
if (readOnly && m_curTab.isAlwaysUpdateField()) if (readOnly && m_curTab.isAlwaysUpdateField())
readOnly = false; readOnly = false;
@ -1145,8 +1146,6 @@ public final class APanel extends CPanel
aNew.setEnabled(true); aNew.setEnabled(true);
aDelete.setEnabled(false); aDelete.setEnabled(false);
aDeleteSelection.setEnabled(false); aDeleteSelection.setEnabled(false);
} else {
aDeleteSelection.setEnabled(true);
} }
// Single-Multi // Single-Multi

View File

@ -1078,6 +1078,7 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
toolbar.enableCopy(!changed && insertRecord && !curTab.isSortTab()); toolbar.enableCopy(!changed && insertRecord && !curTab.isSortTab());
toolbar.enableRefresh(!changed); toolbar.enableRefresh(!changed);
toolbar.enableDelete(!changed && !readOnly && !curTab.isSortTab()); toolbar.enableDelete(!changed && !readOnly && !curTab.isSortTab());
toolbar.enableDeleteSelection(!changed && !readOnly && !curTab.isSortTab());
// //
if (readOnly && curTab.isAlwaysUpdateField()) if (readOnly && curTab.isAlwaysUpdateField())
{ {
@ -1094,10 +1095,6 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
toolbar.enableDelete(false); toolbar.enableDelete(false);
toolbar.enableDeleteSelection(false); toolbar.enableDeleteSelection(false);
} }
else
{
toolbar.enableDeleteSelection(true);
}
// History (on first Tab only) // History (on first Tab only)
if (isFirstTab()) if (isFirstTab())