From fd91529d884c76f1b0bad111bec0864815ff6852 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 18 Feb 2021 10:34:55 +0000 Subject: [PATCH] Quiet Coverity. --- common/widgets/grid_text_button_helpers.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/widgets/grid_text_button_helpers.cpp b/common/widgets/grid_text_button_helpers.cpp index 6e4f9c92cf..9cd94dad04 100644 --- a/common/widgets/grid_text_button_helpers.cpp +++ b/common/widgets/grid_text_button_helpers.cpp @@ -373,7 +373,10 @@ protected: relPath = filePath; SetValue( relPath ); - m_grid->CommitPendingChanges(); + + if( !m_grid->CommitPendingChanges() ) + ; // shouldn't happen, but Coverity doesn't know that + *m_currentDir = lastPath; } } @@ -397,7 +400,10 @@ protected: relPath = filePath; SetValue( relPath ); - m_grid->CommitPendingChanges(); + + if( !m_grid->CommitPendingChanges() ) + ; // shouldn't happen, but Coverity doesn't know that + *m_currentDir = relPath; } }