author | skyhusker <skyhusker> | 2005-06-09 17:37:13 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-06-09 17:37:13 (UTC) |
commit | 5173a392a1422add3e3ae2a38d6bd4eb5df3cf87 (patch) (unidiff) | |
tree | ce9d8b66e60e6028b7524b8e3ac8f45d6afa2332 | |
parent | 2ed64fcf5a3c93ce613e63461cb925568c7df887 (diff) | |
download | opie-5173a392a1422add3e3ae2a38d6bd4eb5df3cf87.zip opie-5173a392a1422add3e3ae2a38d6bd4eb5df3cf87.tar.gz opie-5173a392a1422add3e3ae2a38d6bd4eb5df3cf87.tar.bz2 |
Fix cosmetic error displaying channels starting with '&'
-rw-r--r-- | noncore/net/opieirc/ircchanneltab.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircchanneltab.cpp b/noncore/net/opieirc/ircchanneltab.cpp index 707e17f..881ded7 100644 --- a/noncore/net/opieirc/ircchanneltab.cpp +++ b/noncore/net/opieirc/ircchanneltab.cpp | |||
@@ -183,17 +183,20 @@ void IRCChannelTab::popupVersion() { | |||
183 | } | 183 | } |
184 | 184 | ||
185 | void IRCChannelTab::popupWhois() { | 185 | void IRCChannelTab::popupWhois() { |
186 | if(m_list->currentItem() != -1) | 186 | if(m_list->currentItem() != -1) |
187 | m_parentTab->session()->whois(m_list->text(m_list->currentItem())); | 187 | m_parentTab->session()->whois(m_list->text(m_list->currentItem())); |
188 | } | 188 | } |
189 | 189 | ||
190 | QString IRCChannelTab::title() { | 190 | QString IRCChannelTab::title() { |
191 | return m_channel->channelname(); | 191 | if(!m_channel->channelname().startsWith("&")) |
192 | return m_channel->channelname(); | ||
193 | |||
194 | return "&" + m_channel->channelname(); | ||
192 | } | 195 | } |
193 | 196 | ||
194 | IRCSession *IRCChannelTab::session() { | 197 | IRCSession *IRCChannelTab::session() { |
195 | return m_parentTab->session(); | 198 | return m_parentTab->session(); |
196 | } | 199 | } |
197 | 200 | ||
198 | void IRCChannelTab::remove() { | 201 | void IRCChannelTab::remove() { |
199 | if (session()->isSessionActive()) { | 202 | if (session()->isSessionActive()) { |