projects
/
geeqie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Enable and fix clang-tidy readability-simplify-boolean-expr
[geeqie.git]
/
src
/
history-list.cc
diff --git
a/src/history-list.cc
b/src/history-list.cc
index
d65a70e
..
abde2c4
100644
(file)
--- a/
src/history-list.cc
+++ b/
src/history-list.cc
@@
-465,7
+465,7
@@
void history_list_item_change(const gchar *key, const gchar *oldpath, const gcha
{
auto buf = static_cast<gchar *>(work->data);
- if (!
(g_str_has_prefix(buf, ".") && !newpath)
)
+ if (!
g_str_has_prefix(buf, ".") || newpath
)
{
if (strcmp(buf, oldpath) == 0)
{