nemiver r981 - in trunk: . src/persp/dbgperspective



Author: dodji
Date: Sat Feb 14 14:03:20 2009
New Revision: 981
URL: http://svn.gnome.org/viewvc/nemiver?rev=981&view=rev

Log:
Avoid duplicates in call function dialog history.

	* src/persp/dbgperspective/nmv-dbg-perspective.cc:
	(DBGPerspective::call_function): Avoid duplicates in call function
	dialog history.

Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc

Modified: trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-dbg-perspective.cc	Sat Feb 14 14:03:20 2009
@@ -5846,7 +5846,12 @@
         return;
 
     // Update our copy of call expression history.
-    m_priv->call_expr_history.push_front (call_expr);
+    list<UString>::iterator from = m_priv->call_expr_history.begin (),
+                            to = m_priv->call_expr_history.end (),
+                            nil = to;
+
+    if (std::find (from, to, call_expr) == nil)
+        m_priv->call_expr_history.push_front (call_expr);
 
     // Really execute the function call expression now.
     call_function (call_expr);



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