r18435 by jghali - win32 specific change related to qt plugins handling in order to ease working with multiple Qt builds

scribus-commit scribus-commit at lists.scribus.net
Sun Aug 25 12:07:20 UTC 2013


Author: jghali
Date: Sun Aug 25 12:07:20 2013
New Revision: 18435

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18435
Log:
win32 specific change related to qt plugins handling in order to ease working with multiple Qt builds

Modified:
    branches/Version14x/Scribus/scribus/scpaths.cpp

Modified: branches/Version14x/Scribus/scribus/scpaths.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18435&path=/branches/Version14x/Scribus/scribus/scpaths.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scpaths.cpp (original)
+++ branches/Version14x/Scribus/scribus/scpaths.cpp Sun Aug 25 12:07:20 2013
@@ -127,7 +127,10 @@
 	m_templateDir = QString("%1/share/templates/").arg(appPath);
 	m_libDir = QString("%1/libs/").arg(appPath);
 	m_pluginDir = QString("%1/plugins/").arg(appPath);
-	QApplication::setLibraryPaths( QStringList(QString("%1/qtplugins/").arg(appPath)) );
+
+	QString qtpluginDir = QString("%1/qtplugins/").arg(appPath);
+	if (QDir(qtpluginDir).exists())
+		QApplication::setLibraryPaths( QStringList(qtpluginDir) );
 #endif
 	
 // 	if(!m_shareDir.endsWith("/"))        m_shareDir += "/";




More information about the scribus-commit mailing list