X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;h=c003c9d5e5ddb295f7e45e040c7f26682b4fc703;hp=7bc359a880ccd9e299e0362beca8b59201807891;hb=9cb22a9cccbdf2bd71568ec3989d41ca167326da;hpb=9f33f6e471dedbefe7bbe336a40312894628afe1 diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index 7bc359a8..c003c9d5 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2010 by the Quassel Project * + * Copyright (C) 2005-2013 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -489,9 +489,9 @@ void BufferView::hideCurrentBuffer() { QModelIndex index = selectionModel()->currentIndex(); if(index.data(NetworkModel::ItemTypeRole) != NetworkModel::BufferItemType) return; - + BufferId bufferId = index.data(NetworkModel::BufferIdRole).value(); - + //The check above means we won't be looking at a network, which should always be the first row, so we can just go backwards. changeBuffer(Backward);