1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-06 09:13:45 -09:00

Closing Feedback Dialog on send.

This commit is contained in:
magenoxx 2012-01-28 13:37:12 +04:00
parent 49c403da0e
commit b3f99c43d5

View file

@ -253,6 +253,7 @@ public class FeedbackDialog extends javax.swing.JDialog {
if (MageFrame.getSession().sendFeedback(title, type, message, email)) {
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
reset();
dialog.setVisible(false);
} else {
JOptionPane.showMessageDialog(null, "Couldn't sent feedback.", "Error", JOptionPane.ERROR_MESSAGE);
}
@ -278,7 +279,7 @@ public class FeedbackDialog extends javax.swing.JDialog {
}
private void reset() {
jTabbedPane1.setSelectedIndex(0);
cbFeedbackType.setSelectedIndex(0);
txtIdeaTitle.setText("");
txtFeedbackMessage.setText("");
txtEmail.setText("");