|
@@ -247,7 +247,11 @@ public class TopicBar extends JComponent implements ActionListener,
|
247
|
247
|
public void actionPerformed(final ActionEvent e) {
|
248
|
248
|
if (e.getSource() == topicEdit || e.getSource() == topicText) {
|
249
|
249
|
if (topicText.isEditable()) {
|
250
|
|
- channel.setTopic(topicText.getText());
|
|
250
|
+ if ((channel.getCurrentTopic() == null && !topicText.getText().isEmpty())
|
|
251
|
+ || (channel.getCurrentTopic() != null &&
|
|
252
|
+ !channel.getCurrentTopic().getTopic().equals(topicText.getText()))) {
|
|
253
|
+ channel.setTopic(topicText.getText());
|
|
254
|
+ }
|
251
|
255
|
((ChannelFrame) channel.getFrame()).getInputField().
|
252
|
256
|
requestFocusInWindow();
|
253
|
257
|
topicChanged();
|