Update copyright to 2017
[nikiroo-utils.git] / src / jexer / menu / TMenuItem.java
index ec2afb232718ca8d4c565e114a20b37a3d4d95c3..9ffc1ea075a6448c561e21ef5008f87961f7f4ff 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -255,7 +255,7 @@ public class TMenuItem extends TWidget {
     public void dispatch() {
         assert (isEnabled());
 
-        getApplication().addMenuEvent(new TMenuEvent(id));
+        getApplication().postMenuEvent(new TMenuEvent(id));
         if (checkable) {
             checked = !checked;
         }