r14121 by cbradney - #8261: Enabled (de)hyphenation even on empty text frames in the menus, taking away the need to deselect/select a new frame to hyphenate it. The hyphenator checks for empty frames anyway

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 8 22:10:32 CEST 2009


Revision: 14121
Author: cbradney
Date: 2009-10-08T19:33:51.588096Z
Commit message: #8261: Enabled (de)hyphenation even on empty text frames in the menus, taking away the need to deselect/select a new frame to hyphenate it. The hyphenator checks for empty frames anyway

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

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 14120)
+++ scribus/scribus.cpp	(revision 14121)
@@ -3030,8 +3030,8 @@
 		scrMenuMgr->setMenuEnabled("EditContents", true);
 		scrActions["editClearContents"]->setEnabled(true);
 		scrActions["editSearchReplace"]->setEnabled(currItem->itemText.length() != 0);
-		scrActions["extrasHyphenateText"]->setEnabled(currItem->itemText.length() != 0);
-		scrActions["extrasDeHyphenateText"]->setEnabled(currItem->itemText.length() != 0);
+		scrActions["extrasHyphenateText"]->setEnabled(true);
+		scrActions["extrasDeHyphenateText"]->setEnabled(true);
 		scrMenuMgr->setMenuEnabled("Item", true);
 		//scrMenuMgr->setMenuEnabled("ItemShapes", !(currItem->isTableItem && currItem->isSingleSel));
 		scrMenuMgr->setMenuEnabled("ItemConvertTo", true);




More information about the scribus-commit mailing list