X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Ftabcompleter.cpp;h=695923fdb1fbdc77e2cd6748dd3c712c75676d1a;hp=311801a6ce8c93fb29f30fb62e52db818c3831f3;hb=9a1714ad05614440e6dae848903fdf7c875a05e1;hpb=865638f28fa7824f98ac3b438763aed5124d58ee diff --git a/src/uisupport/tabcompleter.cpp b/src/uisupport/tabcompleter.cpp index 311801a6..695923fd 100644 --- a/src/uisupport/tabcompleter.cpp +++ b/src/uisupport/tabcompleter.cpp @@ -150,7 +150,13 @@ bool TabCompleter::eventFilter(QObject *obj, QEvent *event) { // this determines the sort order bool TabCompleter::CompletionKey::operator<(const CompletionKey &other) const { IrcUser *thisUser = _currentNetwork->ircUser(this->nick); + if(thisUser && _currentNetwork->isMe(thisUser)) + return false; + IrcUser *thatUser = _currentNetwork->ircUser(other.nick); + if(thatUser && _currentNetwork->isMe(thatUser)) + return true; + if(!thisUser || !thatUser) return QString::localeAwareCompare(this->nick, other.nick) < 0;