[gnome-commander] 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] Reduce logging if file was not found in the file_collection when it changed
- Date: Mon, 23 May 2022 20:08:15 +0000 (UTC)
commit d19c67c1610c06695c78521c6a2ff0295ee6c93a
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 | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index eeb304aa..c3aeaee1 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -967,7 +967,10 @@ 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]