r20099 by craig - Fix crash when Scribus cannot find Save as Template plugin
scribus-commit
scribus-commit at lists.scribus.net
Tue May 19 20:26:40 UTC 2015
Author: craig
Date: Tue May 19 20:26:39 2015
New Revision: 20099
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20099
Log:
Fix crash when Scribus cannot find Save as Template plugin
Modified:
trunk/Scribus/scribus/appmodehelper.cpp
Modified: trunk/Scribus/scribus/appmodehelper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20099&path=/trunk/Scribus/scribus/appmodehelper.cpp
==============================================================================
--- trunk/Scribus/scribus/appmodehelper.cpp (original)
+++ trunk/Scribus/scribus/appmodehelper.cpp Tue May 19 20:26:39 2015
@@ -1703,7 +1703,8 @@
(*a_scrActions)["fileCollect"]->setEnabled(false);
(*a_scrActions)["fileClose"]->setEnabled(false);
(*a_scrActions)["PrintPreview"]->setEnabled(false);
- (*a_scrActions)["SaveAsDocumentTemplate"]->setEnabled(false);
+ if ((*a_scrActions)["SaveAsDocumentTemplate"])
+ (*a_scrActions)["SaveAsDocumentTemplate"]->setEnabled(false);
(*a_scrActions)["fileExportAsPDF"]->setEnabled(false);
(*a_scrActions)["fileExportText"]->setEnabled(false);
(*a_scrActions)["fileExportAsEPS"]->setEnabled(false);
More information about the scribus-commit
mailing list