r15959 by jghali - #9514: Potential crash in style manager after closing doc
scribus-commit
scribus-commit at lists.scribus.net
Tue Nov 23 01:24:20 CET 2010
Author: jghali
Date: Tue Nov 23 00:24:20 2010
New Revision: 15959
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15959
Log:
#9514: Potential crash in style manager after closing doc
Modified:
branches/Version135/Scribus/scribus/stylemanager.cpp
Modified: branches/Version135/Scribus/scribus/stylemanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15959&path=/branches/Version135/Scribus/scribus/stylemanager.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/stylemanager.cpp (original)
+++ branches/Version135/Scribus/scribus/stylemanager.cpp Tue Nov 23 00:24:20 2010
@@ -193,6 +193,8 @@
bool hasDoc = (doc != NULL);
if (m_doc && (m_doc != doc))
disconnect(m_doc->m_Selection, SIGNAL(selectionChanged()), this, SLOT(slotDocSelectionChanged()));
+ if (m_doc != doc)
+ m_selectedStyleAction = 0;
m_doc = doc;
newButton->setEnabled(hasDoc);
cloneButton->setEnabled(hasDoc);
More information about the scribus-commit
mailing list