r19585 by craig - #12750: Fix incorrectly enabled send to actions when in edit modes

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 14 19:20:05 UTC 2014


Author: craig
Date: Tue Oct 14 19:20:05 2014
New Revision: 19585

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19585
Log:
#12750: Fix incorrectly enabled send to actions when in edit modes

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19585&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp (original)
+++ trunk/Scribus/scribus/appmodehelper.cpp Tue Oct 14 19:20:05 2014
@@ -350,6 +350,11 @@
 		default:
 			//No doc open?
 			break;
+	}
+	if (doc->inAnEditMode())
+	{
+		(*a_scrActions)["itemSendToPattern"]->setEnabled(false);
+		(*a_scrActions)["itemSendToInline"]->setEnabled(false);
 	}
 	emit AppModeChanged(oldMode, newMode);
 	a_actMgr->connectModeActions();
@@ -880,6 +885,11 @@
 				(*a_scrActions)["itemRaiseToTop"]->setEnabled(haveSameParent);
 				(*a_scrActions)["itemLowerToBottom"]->setEnabled(haveSameParent);
 			}
+		}
+		if (inAnEditMode)
+		{
+			(*a_scrActions)["itemSendToPattern"]->setEnabled(false);
+			(*a_scrActions)["itemSendToInline"]->setEnabled(false);
 		}
 		(*a_scrActions)["itemLock"]->setChecked(currItem->locked());
 		(*a_scrActions)["itemLockSize"]->setChecked(currItem->sizeLocked());




More information about the scribus-commit mailing list