Commit eedd6349 authored by Matej Dipčár's avatar Matej Dipčár
Browse files

Fix color bug

parent 73a4accf
Loading
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -102,9 +102,7 @@ abstract class AbstractEntityDialog<E> extends JDialog {
        this.pack();
        this.setVisible(true);

        E entity = getEntity();

        return wasOk && entity != null ? Optional.of(entity) : Optional.empty();
        return wasOk ? Optional.ofNullable(getEntity()) : Optional.empty();
    }

    protected JButton getOkButton() {