projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
266b271
)
clearing the topic widget no longer reprints the current topic in the chatview but...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 17 Nov 2008 23:55:22 +0000
(
00:55
+0100)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Mon, 17 Nov 2008 23:55:22 +0000
(
00:55
+0100)
src/qtui/topicwidget.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/topicwidget.cpp
b/src/qtui/topicwidget.cpp
index
c8c5aae
..
cc66bd4
100644
(file)
--- a/
src/qtui/topicwidget.cpp
+++ b/
src/qtui/topicwidget.cpp
@@
-65,7
+65,10
@@
void TopicWidget::on_topicLineEdit_returnPressed() {
QModelIndex currentIdx = currentIndex();
if(currentIdx.isValid() && currentIdx.data(NetworkModel::BufferTypeRole) == BufferInfo::ChannelBuffer) {
BufferInfo bufferInfo = currentIdx.data(NetworkModel::BufferInfoRole).value<BufferInfo>();
QModelIndex currentIdx = currentIndex();
if(currentIdx.isValid() && currentIdx.data(NetworkModel::BufferTypeRole) == BufferInfo::ChannelBuffer) {
BufferInfo bufferInfo = currentIdx.data(NetworkModel::BufferInfoRole).value<BufferInfo>();
- Client::userInput(bufferInfo, QString("/topic %1").arg(ui.topicLineEdit->text()));
+ if(ui.topicLineEdit->text().isEmpty())
+ Client::userInput(bufferInfo, QString("/quote TOPIC %1 :").arg(bufferInfo.bufferName()));
+ else
+ Client::userInput(bufferInfo, QString("/topic %1").arg(ui.topicLineEdit->text()));
}
switchPlain();
}
}
switchPlain();
}