[gnome-commander/gcmd-1-14] Reduce logging if file was not found in the file_collection when it changed
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-14] Reduce logging if file was not found in the file_collection when it changed
- Date: Sat, 18 Jun 2022 16:04:53 +0000 (UTC)
commit 785985491e21c51ece2c4db89bccaecbdcbead60
Author: Uwe Scholz <u scholz83 gmx de>
Date: Mon May 23 22:06:47 2022 +0200
Reduce logging if file was not found in the file_collection when it changed
src/gnome-cmd-dir.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index eeb304aa..a8cb2b57 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -967,7 +967,8 @@ void gnome_cmd_dir_file_changed (GnomeCmdDir *dir, const gchar *uri_str)
GnomeCmdFile *f = dir->priv->file_collection->find(uri_str);
- g_return_if_fail(f != nullptr);
+ if (f == nullptr)
+ return;
dir->priv->needs_mtime_update = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]