Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cf9bc5

Browse files
committed
Fix comparison editor
1 parent 1e3e074 commit 6cf9bc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/core/desktopfile/desktopfilereader.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace linuxdeploy {
166166
}
167167

168168
bool DesktopFileReader::operator==(const DesktopFileReader& other) const {
169-
return d->path == other.d->path;
169+
return d->path == other.d->path && d->sections == other.d->sections;
170170
}
171171

172172
bool DesktopFileReader::operator!=(const DesktopFileReader& other) const {

tests/core/desktopfile/test_desktopfilereader.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ TEST_F(DesktopFileReaderTest, testCopyConstructor) {
7474
DesktopFileReader copy(reader);
7575

7676
EXPECT_TRUE(reader.data() == copy.data());
77+
EXPECT_TRUE(reader == copy);
7778
}
7879
}
7980

0 commit comments

Comments
 (0)