Skip to content

Commit e782b68

Browse files
committed
nits
1 parent a71bb66 commit e782b68

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

gui/mainwindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
162162
connect(mUI->mActionAnalyzeFiles, &QAction::triggered, this, &MainWindow::analyzeFiles);
163163
connect(mUI->mActionAnalyzeDirectory, &QAction::triggered, this, &MainWindow::analyzeDirectory);
164164
connect(mUI->mActionSettings, &QAction::triggered, this, &MainWindow::programSettings);
165-
connect(mUI->mActionClearResults, &QAction::triggered, this, [this]() { clearResults(); });
165+
connect(mUI->mActionClearResults, &QAction::triggered, this, [this]() {
166+
clearResults();
167+
});
166168
connect(mUI->mActionOpenXML, &QAction::triggered, this, &MainWindow::openResults);
167169

168170
connect(mUI->mActionShowStyle, &QAction::toggled, this, &MainWindow::showStyle);

gui/mainwindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public slots:
110110
/**
111111
* @brief Slot to clear all search results or selected
112112
* @param selectedFiles list to clear, leave empty for all
113-
*/
113+
*/
114114
void clearResults(const QStringList& selectedFiles = QStringList());
115115

116116
/** @brief Slot to open XML report file */

gui/resultstree.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,6 @@ void ResultsTree::removeFileErrorsFromErrorList(const ResultItem *fileItem)
11391139
if (errorItem && errorItem->errorItem)
11401140
mErrorList.removeAll(errorItem->errorItem->toString());
11411141
}
1142-
mErrorList.removeAll(fileItem->errorItem->toString());
11431142
}
11441143

11451144
void ResultsTree::updateFromOldReport(const QString &filename)

0 commit comments

Comments
 (0)