[rkward-cvs] SF.net SVN: rkward:[2650] trunk/rkward/rkward/plugin/rkcomponentmap.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Fri Sep 18 20:28:59 UTC 2009


Revision: 2650
          http://rkward.svn.sourceforge.net/rkward/?rev=2650&view=rev
Author:   tfry
Date:     2009-09-18 20:28:58 +0000 (Fri, 18 Sep 2009)

Log Message:
-----------
Now that plugins auto-close by default, do not try to close them again from code.
(https://sourceforge.net/tracker/?func=detail&atid=459007&aid=2861578&group_id=50231)

Modified Paths:
--------------
    trunk/rkward/rkward/plugin/rkcomponentmap.cpp

Modified: trunk/rkward/rkward/plugin/rkcomponentmap.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkcomponentmap.cpp	2009-09-18 10:52:41 UTC (rev 2649)
+++ trunk/rkward/rkward/plugin/rkcomponentmap.cpp	2009-09-18 20:28:58 UTC (rev 2650)
@@ -275,8 +275,9 @@
 		// (yet on windows, the PHP backend is *real* slow. We give it a bit longer as long as we still use it...
 		bool submit_ok = component->submit (50000, in_chain);
 #endif
-		if (submit_ok || (submit_mode == AutoSubmitOrFail)) component->close ();
 		if (!submit_ok) {
+			if (submit_mode == AutoSubmitOrFail) component->close ();
+
 			_message.append (i18n ("\nThe plugin could not be auto-submitted with these settings."));
 			if (message) *message = _message;
 			else KMessageBox::sorry (RKWardMainWindow::getMain (), _message, i18n ("Could not submit"));


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