Clear history options transcriptWindow

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12043 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Konstantin Zolotarev
2011-03-01 13:08:14 +00:00
committed by konstantin.zolotarev
parent 1dc59309f8
commit 7f98e035f8

View File

@ -531,10 +531,11 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
int ok = JOptionPane.showConfirmDialog((TranscriptWindow)object,
Res.getString("delete.permanently"), Res.getString("delete.log.permanently"),
JOptionPane.YES_NO_CANCEL_OPTION,
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE);
if (ok == JOptionPane.YES_OPTION) {
if(user != null){
// This actions must be move into Transcript Plugin!
File transcriptDir = new File(SparkManager.getUserDirectory(), "transcripts");
File transcriptFile = new File(transcriptDir ,user + ".xml");
transcriptFile.delete();
@ -543,9 +544,6 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
clear();
}
}
else if (ok == JOptionPane.NO_OPTION) {
clear();
}
}
};