X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=5800ea79e76b41481fc0a60cc1e26198f2062107;hp=aad7c97867f2ff61a4af00ae59b697b887d21bed;hb=673ded0d543cbdc2cf6e746b6bee7c1d21af8f90;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index aad7c978..5800ea79 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -413,7 +413,7 @@ void MainWin::setupActions() // Help coll->addAction("AboutQuassel", new Action(icon::get("quassel"), tr("&About Quassel"), coll, this, &MainWin::showAboutDlg)) ->setMenuRole(QAction::AboutRole); - coll->addAction("AboutQt", new Action(QIcon(":/pics/qt-logo.png"), tr("About &Qt"), coll, qApp, &QApplication::aboutQt)) + coll->addAction("AboutQt", new Action(QIcon(":/pics/qt-logo-32.png"), tr("About &Qt"), coll, qApp, &QApplication::aboutQt)) ->setMenuRole(QAction::AboutQtRole); coll->addActions( {{"DebugNetworkModel", @@ -1195,7 +1195,8 @@ void MainWin::saveMainToolBarStatus(bool enabled) void MainWin::doAutoConnect() { - if (!Client::coreConnection()->connectToCore()) { + int accountId = Quassel::optionValue("account").toInt(); + if (!Client::coreConnection()->connectToCore(accountId)) { // No autoconnect selected (or no accounts) showCoreConnectionDlg(); } @@ -1274,13 +1275,13 @@ void MainWin::loadLayout() QtUiSettings s; int accountId = Client::currentCoreAccount().accountId().toInt(); QByteArray state = s.value(QString("MainWinState-%1").arg(accountId)).toByteArray(); + _nickListWidget->setVisible(true); if (state.isEmpty()) { foreach (BufferViewDock* view, _bufferViews) view->show(); _layoutLoaded = true; return; } - _nickListWidget->setVisible(true); restoreState(state, accountId); int bufferViewId = s.value(QString("ActiveBufferView-%1").arg(accountId), -1).toInt(); if (bufferViewId >= 0) @@ -1724,7 +1725,7 @@ void MainWin::clientNetworkCreated(NetworkId id) const Network* net = Client::network(id); auto* act = new QAction(net->networkName(), this); act->setObjectName(QString("NetworkAction-%1").arg(id.toInt())); - act->setData(QVariant::fromValue(id)); + act->setData(QVariant::fromValue(id)); connect(net, &SyncableObject::updatedRemotely, this, &MainWin::clientNetworkUpdated); connect(act, &QAction::triggered, this, &MainWin::connectOrDisconnectFromNet);