From 52fcfaa2926fc9b87ca46a83da3a14a522ce4233 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 9 Aug 2015 12:52:30 +0200 Subject: some code cleanup --- src/mainwindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 38e1f66b..a209f00b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -175,8 +175,10 @@ MainWindow::MainWindow(const QString &exeName ui->logList->addAction(ui->actionCopy_Log_to_Clipboard); int splitterSize = this->size().height(); // actually total window size, but the splitter doesn't seem to return the true value ui->topLevelSplitter->setSizes(QList() << splitterSize - 100 << 100); - connect(ui->logList->model(), SIGNAL(rowsInserted(const QModelIndex &, int, int)), ui->logList, SLOT(scrollToBottom())); - connect(ui->logList->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), ui->logList, SLOT(scrollToBottom())); + connect(ui->logList->model(), SIGNAL(rowsInserted(const QModelIndex &, int, int)), + ui->logList, SLOT(scrollToBottom())); + connect(ui->logList->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex)), + ui->logList, SLOT(scrollToBottom())); m_RefreshProgress = new QProgressBar(statusBar()); m_RefreshProgress->setTextVisible(true); @@ -929,7 +931,8 @@ void MainWindow::modPagePluginInvoke() m_IntegratedBrowser.setWindowTitle(plugin->displayName()); m_IntegratedBrowser.openUrl(plugin->pageURL()); } else { - ::ShellExecuteW(nullptr, L"open", ToWString(plugin->pageURL().toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL); + ::ShellExecuteW(nullptr, L"open", ToWString(plugin->pageURL().toString()).c_str(), + nullptr, nullptr, SW_SHOWNORMAL); } } } @@ -2328,8 +2331,9 @@ void MainWindow::unendorse_clicked() } } -void MainWindow::loginFailed(const QString&) +void MainWindow::loginFailed(const QString &error) { + qDebug("login failed: %s", qPrintable(error)); statusBar()->hide(); } @@ -4757,3 +4761,4 @@ void MainWindow::dropEvent(QDropEvent *event) } event->accept(); } + -- cgit v1.3.1