From: Manuel Nickschas Date: Wed, 3 Mar 2010 14:50:05 +0000 (+0100) Subject: Show all existing BufferViews if we don't have a layout to restore X-Git-Tag: 0.6-rc1~4 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=d98055b722222402eaa0543dacd133b9e3eaa52e;ds=inline Show all existing BufferViews if we don't have a layout to restore Also fixes the problem that All Chats wouldn't be shown by default when setting up a new mono client. --- diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 7d38930e..75f2c839 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2010 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -767,9 +767,9 @@ void MainWin::loadLayout() { int accountId = Client::currentCoreAccount().accountId().toInt(); QByteArray state = s.value(QString("MainWinState-%1").arg(accountId)).toByteArray(); if(state.isEmpty()) { - // Make sure that the default bufferview is shown - if(_bufferViews.count()) - _bufferViews.at(0)->show(); + foreach(BufferViewDock *view, _bufferViews) + view->show(); + _layoutLoaded = true; return; }