summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2026-01-04 22:35:20 +0100
committerMatthias Melcher <github@matthiasm.com>2026-01-04 22:35:20 +0100
commit296f2fc5da9c2bcdef10221e40971864e6457f20 (patch)
treef43a2c69aa9d94a90aa6cb4427104acd95c5280f
parent8d714acf333862f499ccc724f11777aaf33022b2 (diff)
Fix missing return in mergeback
-rw-r--r--fluid/proj/mergeback.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/fluid/proj/mergeback.cxx b/fluid/proj/mergeback.cxx
index ad0acf6b5..cef683f3e 100644
--- a/fluid/proj/mergeback.cxx
+++ b/fluid/proj/mergeback.cxx
@@ -613,14 +613,15 @@ int Mergeback::merge_back(const std::string &s, const std::string &p, Task task)
files with the project file. If MergeBack is not enabled, it displays
a message to the user. It handles both batch and interactive modes.
- \return int - Returns 1 if the project filename is not available,
- 0 if MergeBack is not enabled,
- or the result of the merge_back function.
+ \return 2 if mergeback is called recursively
+ \return 1 if the project filename is not available
+ \return 0 if MergeBack is not enabled, or the result of the merge_back function.
+ \see Mergeback::merge_back(const std::string &s, const std::string &p, Task task)
*/
int mergeback_code_files(Project &proj, Mergeback::Feedback feedback)
{
static bool recursion_lock = false;
- if (recursion_lock) return;
+ if (recursion_lock) return 2;
recursion_lock = true;
Fluid.flush_text_widgets();