From 836b1d769fe8caa8f2f60eea07b01f659a6454c9 Mon Sep 17 00:00:00 2001 From: Andrew Caudwell Date: Fri, 13 Aug 2010 13:49:35 +1200 Subject: [PATCH] Re-show name of user when adding a new action if user is idle. --- ChangeLog | 1 + src/user.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9be83585..3f61e386 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * Bazaar support for merged commits (Nick Moffit). * C++ efficiency improvements (Oliver Smith). * Improved cvs-exp log compatibility. + * Re-show name of user when adding a new action if user is idle. 0.27: * Display time stops at the time of the last commit. diff --git a/src/user.cpp b/src/user.cpp index aafc641e..50534582 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -51,6 +51,9 @@ void RUser::addAction(RAction* action) { if(action->source != this) return; + if(isIdle()) showName(); + //name_interval = name_interval > 0.0 ? std::max(name_interval,nametime-1.0f) : nametime; + actions.push_back(action); actionCount++; }