r21426 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Jul 31 01:02:34 UTC 2016


Author: jghali
Date: Sun Jul 31 01:02:34 2016
New Revision: 21426

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21426
Log:
#14237: Exiting text edit mode does not activate copy of frame

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21426&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp	(original)
+++ trunk/Scribus/scribus/appmodehelper.cpp	Sun Jul 31 01:02:34 2016
@@ -214,6 +214,21 @@
 	{
 		case modeNormal:
 			{
+				bool editSearchReplace = false;
+				if (currItem != 0)
+				{
+					editSearchReplace |= currItem->isTextFrame();
+					editSearchReplace |= (currItem->itemText.length() > 0);
+					editSearchReplace |= (doc->m_Selection->count() == 1);
+				}
+				(*a_scrActions)["editSearchReplace"]->setEnabled(editSearchReplace);
+
+				(*a_scrActions)["editCut"]->setEnabled(currItem != 0);
+				(*a_scrActions)["editCopy"]->setEnabled(currItem != 0);
+				(*a_scrActions)["editClearContents"]->setEnabled(currItem != 0);
+				(*a_scrActions)["editPaste"]->setEnabled(ScMimeData::clipboardHasScribusData());
+				(*a_scrActions)["editTruncateContents"]->setEnabled(currItem != 0);
+
 				scmw->propertiesPalette->setGradientEditMode(false);
 				scmw->outlinePalette->setEnabled(true);
 			}




More information about the scribus-commit mailing list