[rkward-cvs] SF.net SVN: rkward:[2876] trunk/rkward/rkward/misc/rkxmlguisyncer.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jun 14 16:31:10 UTC 2010


Revision: 2876
          http://rkward.svn.sourceforge.net/rkward/?rev=2876&view=rev
Author:   tfry
Date:     2010-06-14 16:31:10 +0000 (Mon, 14 Jun 2010)

Log Message:
-----------
Fix against losing shortcut settings for plugins.

Modified Paths:
--------------
    trunk/rkward/rkward/misc/rkxmlguisyncer.cpp

Modified: trunk/rkward/rkward/misc/rkxmlguisyncer.cpp
===================================================================
--- trunk/rkward/rkward/misc/rkxmlguisyncer.cpp	2010-06-14 12:28:26 UTC (rev 2875)
+++ trunk/rkward/rkward/misc/rkxmlguisyncer.cpp	2010-06-14 16:31:10 UTC (rev 2876)
@@ -127,6 +127,10 @@
 		}
 		for (int i = 0; i < clients.size (); ++i) {
 			factory->addClient (clients[i]);
+			if (clients[i]->xmlFile ().isEmpty ()) {
+				// somehow config-based settings get lost above, so re-read them, now.
+				clients[i]->actionCollection ()->readSettings();
+			}
 		}
 		RK_DO (qDebug ("done rebuilding factory"), MISC, DL_DEBUG);
 	}


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