lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5824] Indicate cancellation on statusbar


From: Greg Chicares
Subject: [lmi-commits] [5824] Indicate cancellation on statusbar
Date: Sun, 10 Nov 2013 14:01:31 +0000

Revision: 5824
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5824
Author:   chicares
Date:     2013-11-10 14:01:31 +0000 (Sun, 10 Nov 2013)
Log Message:
-----------
Indicate cancellation on statusbar

Modified Paths:
--------------
    lmi/trunk/group_values.cpp

Modified: lmi/trunk/group_values.cpp
===================================================================
--- lmi/trunk/group_values.cpp  2013-11-09 00:29:18 UTC (rev 5823)
+++ lmi/trunk/group_values.cpp  2013-11-10 14:01:31 UTC (rev 5824)
@@ -736,6 +736,18 @@
             }
         }
 
+    // Indicate cancellation on the statusbar. This may be of little
+    // importance to end users, yet quite helpful for testing.
+    //
+    // It might seem like a good idea to write this statusbar message
+    // in progress_meter::culminate(), but that function is bypassed
+    // upon cancellation in this translation unit; and writing it in
+    // ~progress_meter() seems to be a poor idea because it may throw.
+    //
+    if(!result.completed_normally_)
+        {
+        status() << "Cancelled." << std::flush;
+        }
     return result;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]