mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
konstantin.zolotarev
parent
1dc59309f8
commit
7f98e035f8
@ -531,10 +531,11 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
|
|||||||
|
|
||||||
int ok = JOptionPane.showConfirmDialog((TranscriptWindow)object,
|
int ok = JOptionPane.showConfirmDialog((TranscriptWindow)object,
|
||||||
Res.getString("delete.permanently"), Res.getString("delete.log.permanently"),
|
Res.getString("delete.permanently"), Res.getString("delete.log.permanently"),
|
||||||
JOptionPane.YES_NO_CANCEL_OPTION,
|
JOptionPane.YES_NO_OPTION,
|
||||||
JOptionPane.QUESTION_MESSAGE);
|
JOptionPane.QUESTION_MESSAGE);
|
||||||
if (ok == JOptionPane.YES_OPTION) {
|
if (ok == JOptionPane.YES_OPTION) {
|
||||||
if(user != null){
|
if(user != null){
|
||||||
|
// This actions must be move into Transcript Plugin!
|
||||||
File transcriptDir = new File(SparkManager.getUserDirectory(), "transcripts");
|
File transcriptDir = new File(SparkManager.getUserDirectory(), "transcripts");
|
||||||
File transcriptFile = new File(transcriptDir ,user + ".xml");
|
File transcriptFile = new File(transcriptDir ,user + ".xml");
|
||||||
transcriptFile.delete();
|
transcriptFile.delete();
|
||||||
@ -543,9 +544,6 @@ public class TranscriptWindow extends ChatArea implements ContextMenuListener {
|
|||||||
clear();
|
clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ok == JOptionPane.NO_OPTION) {
|
|
||||||
clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user