Skip to content

Commit

Permalink
Fix KontoauswahlInput (#139)
Browse files Browse the repository at this point in the history
Wenn man im Buchungsliste View den Kontoauswahl Dialog mit Abbrechen oder ESC verlässt wird die Anzeige des gewählten Kontos gelöscht (wie bei "Alle Konten"). Aber die  Buchungen bleiben weiter angezeigt.
Der Fix fängt im Listener den SWT.CANCEL ab und macht dann nichts.
  • Loading branch information
JohannMaierhofer authored Feb 2, 2024
1 parent b66e8bb commit ffdf8ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/de/jost_net/JVerein/gui/input/KontoauswahlInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.rmi.RemoteException;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

Expand Down Expand Up @@ -119,9 +120,13 @@ private class KontoListener implements Listener
public void handleEvent(Event event)
{

if (event == null || event.data == null)
if (event == null)
{
if (keinkonto)
return;
}
if (event.data == null)
{
if (keinkonto && (event.detail != SWT.CANCEL ))
{
konto = null;
try
Expand Down

0 comments on commit ffdf8ad

Please sign in to comment.