r18201 by fschmid - Fixed wrong cursor after WMF import.

scribus-commit scribus-commit at lists.scribus.net
Mon Mar 11 20:19:10 UTC 2013


Author: fschmid
Date: Mon Mar 11 20:19:10 2013
New Revision: 18201

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18201
Log:
Fixed wrong cursor after WMF import.

Modified:
    trunk/Scribus/scribus/plugins/import/wmf/wmfimport.cpp

Modified: trunk/Scribus/scribus/plugins/import/wmf/wmfimport.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18201&path=/trunk/Scribus/scribus/plugins/import/wmf/wmfimport.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/wmf/wmfimport.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/wmf/wmfimport.cpp Mon Mar 11 20:19:10 2013
@@ -604,6 +604,7 @@
 	m_Doc->PageColors.ensureDefaultColors();
 	//m_gc.push( gc );
 	QList<PageItem*> Elements = parseWmfCommands();
+	qApp->restoreOverrideCursor();
 	if (flags & LoadSavePlugin::lfCreateDoc)
 	{
 		m_Doc->documentInfo().setTitle(m_docTitle);
@@ -627,7 +628,6 @@
 	m_Doc->scMW()->setScriptRunning(false);
 	if (interactive)
 		m_Doc->setLoading(false);
-	qApp->setOverrideCursor(QCursor(Qt::ArrowCursor));
 	if ((Elements.count() > 0) && (!ret) && (interactive))
 	{
 		if (flags & LoadSavePlugin::lfScripted)
@@ -686,7 +686,6 @@
 			m_Doc->view()->updatesOn(true);
 		m_Doc->setLoading(loadF);
 	}
-	qApp->restoreOverrideCursor();
 	return true;
 }
 




More information about the scribus-commit mailing list