[rkward-cvs] SF.net SVN: rkward: [1588] trunk/rkward/rkward/windows/rkworkplace.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Mar 15 19:05:18 UTC 2007


Revision: 1588
          http://svn.sourceforge.net/rkward/?rev=1588&view=rev
Author:   tfry
Date:     2007-03-15 12:05:18 -0700 (Thu, 15 Mar 2007)

Log Message:
-----------
Don't add dupes to window history

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkworkplace.cpp

Modified: trunk/rkward/rkward/windows/rkworkplace.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplace.cpp	2007-03-15 18:54:44 UTC (rev 1587)
+++ trunk/rkward/rkward/windows/rkworkplace.cpp	2007-03-15 19:05:18 UTC (rev 1588)
@@ -438,7 +438,10 @@
 	if (window->isToolWindow ()) return;		// exclude tool windows for now. Make configurable?
 
 	forward_list.clear ();
-	if (current) back_list.append (current);
+	if (current) {
+		back_list.remove (current);		// remove dupes
+		back_list.append (current);
+	}
 
 	current = window;
 	updateActions ();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list