r14761 by fschmid - Fixed the issue that certain tool plugins could get activated when there is no item selected.

scribus-commit scribus-commit at lists.scribus.net
Thu Feb 18 12:10:17 CET 2010


Revision: 14761
Author: fschmid
Date: 2010-02-18T11:04:32.655368Z
Commit message: Fixed the issue that certain tool plugins could get activated when there is no item selected.

Changeset: 
M  /trunk/Scribus/scribus/scplugin.cpp

Diffs:
Index: scribus/scplugin.cpp
===================================================================
--- scribus/scplugin.cpp	(revision 14760)
+++ scribus/scplugin.cpp	(revision 14761)
@@ -230,8 +230,10 @@
 			correctAppMode = true;
 		if (correctAppMode)
 		{
-			if ((ai.needsNumObjects == -1) || (ai.needsNumObjects > 2))
+			if (ai.needsNumObjects == -1)
 				return true;
+			else if ((ai.needsNumObjects > 2) && (docSelectionCount > 0))
+				return true;
 			else
 				return false;
 		}




More information about the scribus-commit mailing list