From 1502dc318ab1f225f6108e5d6bb4ad4a89876910 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 00:29:51 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/ui/articleview.cc | 8 ++++---- src/ui/mainwindow.cc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index c9b50584..ac55360b 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -447,13 +447,13 @@ void ArticleView::loadFinished( bool result ) if ( isScrollTo( scrollTo ) ) { setCurrentArticle( scrollTo, true ); } - else{ - setActiveArticleId(""); + else { + setActiveArticleId( "" ); } } - else{ + else { //clear current active dictionary id; - setActiveArticleId(""); + setActiveArticleId( "" ); } webview->unsetCursor(); diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index ab130137..e6191473 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -2508,7 +2508,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev ) } if ( obj == this && ev->type() == QEvent::WindowStateChange ) { - auto stev = dynamic_cast< QWindowStateChangeEvent * >( ev ); + auto stev = dynamic_cast< QWindowStateChangeEvent * >( ev ); wasMaximized = ( stev->oldState() == Qt::WindowMaximized && isMinimized() ); } @@ -2522,7 +2522,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev ) auto keyevent = dynamic_cast< QKeyEvent * >( ev ); bool const handleCtrlTab = ( obj == translateLine || obj == ui.wordList || obj == ui.historyList - || obj == ui.favoritesTree || obj == ui.dictsList || obj == groupList ); + || obj == ui.favoritesTree || obj == ui.dictsList || obj == groupList ); if ( keyevent->modifiers() == Qt::ControlModifier && keyevent->key() == Qt::Key_Tab ) { if ( cfg.preferences.mruTabOrder ) {