[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2023-07-27 00:29:51 +00:00 committed by GitHub
parent 0ed2f697cd
commit 1502dc318a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -447,13 +447,13 @@ void ArticleView::loadFinished( bool result )
if ( isScrollTo( scrollTo ) ) { if ( isScrollTo( scrollTo ) ) {
setCurrentArticle( scrollTo, true ); setCurrentArticle( scrollTo, true );
} }
else{ else {
setActiveArticleId(""); setActiveArticleId( "" );
} }
} }
else{ else {
//clear current active dictionary id; //clear current active dictionary id;
setActiveArticleId(""); setActiveArticleId( "" );
} }
webview->unsetCursor(); webview->unsetCursor();

View file

@ -2508,7 +2508,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
} }
if ( obj == this && ev->type() == QEvent::WindowStateChange ) { 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() ); wasMaximized = ( stev->oldState() == Qt::WindowMaximized && isMinimized() );
} }
@ -2522,7 +2522,7 @@ bool MainWindow::eventFilter( QObject * obj, QEvent * ev )
auto keyevent = dynamic_cast< QKeyEvent * >( ev ); auto keyevent = dynamic_cast< QKeyEvent * >( ev );
bool const handleCtrlTab = ( obj == translateLine || obj == ui.wordList || obj == ui.historyList 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 ( keyevent->modifiers() == Qt::ControlModifier && keyevent->key() == Qt::Key_Tab ) {
if ( cfg.preferences.mruTabOrder ) { if ( cfg.preferences.mruTabOrder ) {