r21267 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun May 1 13:46:28 UTC 2016


Author: jghali
Date: Sun May  1 13:46:27 2016
New Revision: 21267

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21267
Log:
#14006: "Lock Guides" checkbox status is not correctly set when switching documents

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

Modified: trunk/Scribus/scribus/ui/guidemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21267&path=/trunk/Scribus/scribus/ui/guidemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/guidemanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/guidemanager.cpp	Sun May  1 13:46:27 2016
@@ -140,6 +140,8 @@
 			this, SLOT(horizontalAutoGapCheck_stateChanged(int)));
 	disconnect(verticalAutoGapCheck, SIGNAL(stateChanged(int)),
 			this, SLOT(verticalAutoGapCheck_stateChanged(int)));
+	disconnect(lockCheck, SIGNAL(stateChanged(int)), 
+			this, SLOT(lockCheck_stateChanged(int)));
 
 	// restore values from new page
 	clearRestoreHorizontalList();
@@ -174,10 +176,15 @@
 	// allow the selection radio button?
 	verticalSelectionAutoButton->setEnabled(!m_Doc->m_Selection->isEmpty());
 
+	// restore guide locking
+	lockCheck->setChecked(m_Doc->GuideLock);
+
 	connect(horizontalAutoGapCheck, SIGNAL(stateChanged(int)),
 			this, SLOT(horizontalAutoGapCheck_stateChanged(int)));
 	connect(verticalAutoGapCheck, SIGNAL(stateChanged(int)),
 			this, SLOT(verticalAutoGapCheck_stateChanged(int)));
+	connect(lockCheck, SIGNAL(stateChanged(int)), 
+			this, SLOT(lockCheck_stateChanged(int)));
 
 	m_drawGuides = true;
 // 	drawGuides(); let Canvas::DrawPageMarks take care of it and avoid a costly ScribusView::DrawNew()




More information about the scribus-commit mailing list