Skip to content

Commit

Permalink
Fix MitgliedDetailAction (#130)
Browse files Browse the repository at this point in the history
Wenn in den Einstellungen "Juristische Personen erlaubt" ausgewählt ist und man eine neues Mtglied erzeugt erscheint der Personenart Dialog.
Bei ESC und Abbruch Button erscheint eine Fehlermeldung.
Beim Schliesen über das Schliesen Icon kommt es zu einer Stacktraceausgabe.
Der Fix behebt beides.
  • Loading branch information
JohannMaierhofer committed Jan 26, 2024
1 parent 79e49ff commit f5d398e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/de/jost_net/JVerein/gui/action/MitgliedDetailAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import de.jost_net.JVerein.rmi.Mitgliedskonto;
import de.willuhn.jameica.gui.Action;
import de.willuhn.jameica.gui.GUI;
import de.willuhn.jameica.system.OperationCanceledException;
import de.willuhn.util.ApplicationException;

public class MitgliedDetailAction implements Action
Expand Down Expand Up @@ -65,6 +66,10 @@ else if (context != null && (context instanceof Mitgliedskonto))
PersonenartDialog pad = new PersonenartDialog(
PersonenartDialog.POSITION_CENTER);
String pa = pad.open();
if (pa == null)
{
return;
}
m.setPersonenart(pa);
}
else
Expand All @@ -81,6 +86,10 @@ else if (context != null && (context instanceof Mitgliedskonto))
GUI.startView(new AdresseDetailView(), m);
}
}
catch (OperationCanceledException oce)
{
throw oce;
}
catch (Exception e)
{
throw new ApplicationException(
Expand Down
2 changes: 1 addition & 1 deletion src/de/jost_net/JVerein/gui/dialogs/PersonenartDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public PersonenartDialog(int position)
super(position);

setTitle("Personenart");
setSize(450, 200);
setSize(400, 140);
}

@Override
Expand Down

0 comments on commit f5d398e

Please sign in to comment.