TavernerPOS - Source Code

Clone: 

git clone http://www.librarysmith.co.uk/tavernerPOS

 

viewgit/viewgit/inc/functions.php:49 Function create_function() is deprecated [8192]

Index » tavernerPOS : Commitdiff c64009

Fix placement of Clear All confirmation dialog

Matt Smith [15-10-30 13:11]
Fix placement of Clear All confirmation dialog
diff --git a/src/com/floreantpos/ui/views/order/TicketView.java b/src/com/floreantpos/ui/views/order/TicketView.java
index ae835cf..861bea4 100755
--- a/src/com/floreantpos/ui/views/order/TicketView.java
+++ b/src/com/floreantpos/ui/views/order/TicketView.java
@@ -291,7 +291,7 @@ public class TicketView extends JPanel {

 		btnDeleteAll.addActionListener(new java.awt.event.ActionListener() {
 			public void actionPerformed(java.awt.event.ActionEvent evt) {
-				if (JOptionPane.showConfirmDialog(null, Messages.getString("BARMOD_TicketListView.21"), Messages.getString("BARMOD_TicketListView.20"),  JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION)  doDeleteAll(evt);
+				if (JOptionPane.showConfirmDialog(Application.getPosWindow(), Messages.getString("BARMOD_TicketListView.21"), Messages.getString("BARMOD_TicketListView.20"),  JOptionPane.YES_NO_OPTION)==JOptionPane.YES_OPTION)  doDeleteAll(evt);
 			}
 		});

Add comment
These comments are moderated so so won't be published until reviewed.