Skip to content

Commit a88e375

Browse files
committed
qmdiEditor: do not complain when a formatter is not found [192]
Most of them are not, just hide it from the user. Closes #192
1 parent 3245cde commit a88e375

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/widgets/qmdieditor.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
auto static const cExtensions = QStringList{"c", "cpp", "cxx", "cc", "c++"};
6969
auto static const headerExtensions = QStringList{"h", "hpp", "hh"};
7070

71-
auto static getCorrespondingFile(PluginManager *manager, const QString &fileName)
72-
-> QFuture<QString> {
71+
auto static getCorrespondingFile(PluginManager *manager,
72+
const QString &fileName) -> QFuture<QString> {
7373

7474
// First - choose easy solution, file aside the original one
7575
auto fileInfo = QFileInfo(fileName);
@@ -191,7 +191,6 @@ static auto createSubFollowSymbolSubmenu(const CommandArgs &data, QMenu *menu,
191191
auto const lineNumber = tag[GlobalArguments::LineNumber].toInt();
192192
auto const columnNumber = tag[GlobalArguments::ColumnNumber].toInt();
193193

194-
195194
auto address = rawAddress;
196195
if (address.startsWith(START_MARKER) && address.endsWith(END_MARKER) &&
197196
address.length() > MIN_LENGTH) {
@@ -214,7 +213,10 @@ static auto createSubFollowSymbolSubmenu(const CommandArgs &data, QMenu *menu,
214213
auto simpleFileName = fi.fileName();
215214
auto title = QString();
216215
if (lineNumber > 0) {
217-
title = QString("%1:%2 - %3 %4").arg(simpleFileName).arg(lineNumber).arg(fieldType, fieldValue);
216+
title = QString("%1:%2 - %3 %4")
217+
.arg(simpleFileName)
218+
.arg(lineNumber)
219+
.arg(fieldType, fieldValue);
218220
} else {
219221
title = QString("%1 - %2 %3").arg(simpleFileName, fieldType, fieldValue);
220222
}
@@ -1709,7 +1711,7 @@ QFuture<void> qmdiEditor::reformatContent() {
17091711

17101712
switch (exitCode) {
17111713
case GlobalResults::ExecutableNotFound:
1712-
this->displayBannerMessage(processStderr, 15);
1714+
// this->displayBannerMessage(processStderr, 15);
17131715
break;
17141716
case GlobalResults::ExecutableError:
17151717
this->displayBannerMessage(processStderr, 25);

0 commit comments

Comments
 (0)