Skip to content

Commit 950567e

Browse files
authored
Fix #14672 (GUI: cfg files in current folder are not shown) (#8455)
1 parent 4e0a568 commit 950567e

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

gui/manualtest/projectfiledialog.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
Some manual testing in the project file dialog interface
55

66

7-
8-
## Test: Platform files
7+
## Test: Platform file pic8.xml
98

109
Ticket: #14489
1110

@@ -14,6 +13,14 @@ EXPECTED: In the project file dialog it should be possible to select xml files i
1413
TODO: can this test be automated
1514

1615

16+
## Test: Custom cfg file
17+
18+
Ticket: #14672
19+
20+
1. Copy addons/avr.cfg to a file "aa.cfg" in same folder as a cppcheck GUI project file
21+
22+
EXPECTED: It should not be possible to activate "aa.cfg" in the project file dialog, it should appear in alphabetical order.
23+
1724

1825
## Test: Misra C checkbox
1926

gui/projectfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,5 +1207,5 @@ QStringList ProjectFile::getSearchPaths(const QString& dir) const {
12071207
const QString applicationFilePath = QCoreApplication::applicationFilePath();
12081208
const QString appPath = QFileInfo(applicationFilePath).canonicalPath();
12091209
const QString datadir = getDataDir();
1210-
return getSearchPaths(inf.canonicalFilePath(), appPath, datadir, dir);
1210+
return getSearchPaths(inf.canonicalPath(), appPath, datadir, dir);
12111211
}

0 commit comments

Comments
 (0)