r18813 by jghali - fix link tool icon being incorrectly enabled/disabled when selecting text frame
scribus-commit
scribus-commit at lists.scribus.net
Thu Feb 13 22:41:54 UTC 2014
Author: jghali
Date: Thu Feb 13 22:41:54 2014
New Revision: 18813
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18813
Log:
fix link tool icon being incorrectly enabled/disabled when selecting text frame
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18813&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Thu Feb 13 22:41:54 2014
@@ -3051,8 +3051,7 @@
scrActions["toolsUnlinkTextFrameWithTextCopy"]->setEnabled(false);
scrActions["toolsUnlinkTextFrameWithTextCut"]->setEnabled(false);
}
- if (currItem->nextInChain() == 0)
- scrActions["toolsLinkTextFrame"]->setEnabled(true);
+ scrActions["toolsLinkTextFrame"]->setEnabled(!currItem->nextInChain());
// if (doc->masterPageMode())
// scrActions["toolsLinkTextFrame"]->setEnabled(false);
if (doc->appMode == modeEdit)
More information about the scribus-commit
mailing list