Skip to content
Snippets Groups Projects
Commit fb1bd36f authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #155 - opened edit payment ui on double click

parent 9fdd7283
Branches
Tags
1 merge request!213merge v1_6_0 into master
...@@ -383,6 +383,11 @@ public class Controller extends BaseController ...@@ -383,6 +383,11 @@ public class Controller extends BaseController
this.lastSearchQuery = lastSearchQuery; this.lastSearchQuery = lastSearchQuery;
} }
public PaymentController getPaymentController()
{
return paymentController;
}
public void checkForUpdates(boolean showNotification) public void checkForUpdates(boolean showNotification)
{ {
try try
......
...@@ -78,7 +78,11 @@ public class SearchController extends BaseController implements Styleable ...@@ -78,7 +78,11 @@ public class SearchController extends BaseController implements Styleable
cell.addEventFilter(MouseEvent.MOUSE_CLICKED, event -> { cell.addEventFilter(MouseEvent.MOUSE_CLICKED, event -> {
if(event.getClickCount() == 2) if(event.getClickCount() == 2)
{ {
//TODO open new/edit payment ui // don't allow editing of payment "rest"
if(cell.getItem().getCategoryID() != 2)
{
controller.getPaymentController().payment(!cell.getItem().isIncome(), true, cell.getItem());
}
} }
}); });
cell.prefWidthProperty().bind(listView.widthProperty().subtract(2)); cell.prefWidthProperty().bind(listView.widthProperty().subtract(2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment