r20056 by craig - A little tidy up in appmodehelper

scribus-commit scribus-commit at lists.scribus.net
Tue May 5 21:26:12 UTC 2015


Author: craig
Date: Tue May  5 21:26:12 2015
New Revision: 20056

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20056
Log:
A little tidy up in appmodehelper

Modified:
    trunk/Scribus/scribus/appmodehelper.cpp

Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20056&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp (original)
+++ trunk/Scribus/scribus/appmodehelper.cpp Tue May  5 21:26:12 2015
@@ -396,14 +396,15 @@
 			//No doc open?
 			break;
 	}
-	if (doc->inAnEditMode())
+	bool inAnEditMode = doc->inAnEditMode();
+	if (inAnEditMode)
 	{
 		(*a_scrActions)["itemSendToPattern"]->setEnabled(false);
 		(*a_scrActions)["itemSendToInline"]->setEnabled(false);
 	}
-	scmw->enablePalettes(!doc->inAnEditMode());
-	scmw->pageSelector->setEnabled(!doc->inAnEditMode());
-	scmw->layerMenu->setEnabled(!doc->inAnEditMode());
+	scmw->enablePalettes(!inAnEditMode);
+	scmw->pageSelector->setEnabled(!inAnEditMode);
+	scmw->layerMenu->setEnabled(!inAnEditMode);
 	emit AppModeChanged(oldMode, newMode);
 	a_actMgr->connectModeActions();
 	PluginManager::instance().enablePluginActionsForSelection(scmw);




More information about the scribus-commit mailing list