r17858 by jghali - #11151 related : fix empty language list boxes after language change

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 6 23:30:37 UTC 2012


Author: jghali
Date: Tue Nov  6 23:30:37 2012
New Revision: 17858

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17858
Log:
#11151 related : fix empty language list boxes after language change

Modified:
    trunk/Scribus/scribus/langmgr.cpp

Modified: trunk/Scribus/scribus/langmgr.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17858&path=/trunk/Scribus/scribus/langmgr.cpp
==============================================================================
--- trunk/Scribus/scribus/langmgr.cpp (original)
+++ trunk/Scribus/scribus/langmgr.cpp Tue Nov  6 23:30:37 2012
@@ -45,7 +45,20 @@
 
 void LanguageManager::languageChange()
 {
+	QList<LangDef> oldLangList = langTable;
 	generateLangList();
+
+	for (int i = 0; i < langTable.count(); ++i)
+	{
+		langTable[i].m_hyphAvailable = oldLangList[i].m_hyphAvailable;
+		langTable[i].m_hyphFile = oldLangList[i].m_hyphFile;
+
+		langTable[i].m_spellAvailable = oldLangList[i].m_spellAvailable;
+		langTable[i].m_spellFile = oldLangList[i].m_spellFile;
+
+		langTable[i].m_transAvailable = oldLangList[i].m_transAvailable;
+		langTable[i].m_transFile = oldLangList[i].m_transFile;
+	}
 }
 
 void LanguageManager::init(bool generateInstalledList)




More information about the scribus-commit mailing list