r19472 by jghali - #12646: "Update All Marks" crashes Scribus if no document is opened

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 1 20:14:16 UTC 2014


Author: jghali
Date: Mon Sep  1 20:14:16 2014
New Revision: 19472

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19472
Log:
#12646: "Update All Marks" crashes Scribus if no document is opened

Modified:
    trunk/Scribus/scribus/ui/marksmanager.cpp

Modified: trunk/Scribus/scribus/ui/marksmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19472&path=/trunk/Scribus/scribus/ui/marksmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/marksmanager.cpp (original)
+++ trunk/Scribus/scribus/ui/marksmanager.cpp Mon Sep  1 20:14:16 2014
@@ -116,6 +116,9 @@
 	if (m_Doc != NULL)
 		disconnect(m_Doc->scMW(), SIGNAL(UpdateRequest(int)), this , SLOT(handleUpdateRequest(int)));
 
+	UpdateButton->setEnabled(false);
+	listView->setEnabled(false);
+
 	m_Doc = doc;
 	if (!m_Doc)
 	{




More information about the scribus-commit mailing list