r17375 by fschmid - Switch back to "Normal Vision" when exiting preview mode.
scribus-commit
scribus-commit at lists.scribus.net
Mon Mar 12 22:45:47 UTC 2012
Author: fschmid
Date: Mon Mar 12 22:45:47 2012
New Revision: 17375
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17375
Log:
Switch back to "Normal Vision" when exiting preview mode.
Modified:
trunk/Scribus/scribus/scribusview.cpp
Modified: trunk/Scribus/scribus/scribusview.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17375&path=/trunk/Scribus/scribus/scribusview.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusview.cpp (original)
+++ trunk/Scribus/scribus/scribusview.cpp Mon Mar 12 22:45:47 2012
@@ -400,7 +400,7 @@
{
Doc->enableCMS(Doc->cmsSettings().CMSinUse);
cmsToolbarButton->setChecked(Doc->HasCMS);
- m_ScMW->requestUpdate(reqCmsOptionsUpdate);;
+ m_ScMW->requestUpdate(reqCmsOptionsUpdate);
DrawNew();
}
}
@@ -438,6 +438,11 @@
{
Doc->guidesPrefs().framesShown = storedFramesShown;
Doc->guidesPrefs().showControls = storedShowControls;
+ disconnect(visualMenu, SIGNAL(activated(int)), this, SLOT(switchPreviewVisual(int)));
+ m_canvas->m_viewMode.previewVisual = 0;
+ Doc->previewVisual = 0;
+ visualMenu->setCurrentIndex(0);
+ connect(visualMenu, SIGNAL(activated(int)), this, SLOT(switchPreviewVisual(int)));
}
m_ScMW->scrActions["viewFitPreview"]->setChecked(m_canvas->m_viewMode.viewAsPreview);
m_ScMW->scrActions["viewShowMargins"]->setEnabled(!m_canvas->m_viewMode.viewAsPreview);
More information about the scribus-commit
mailing list