r19438 by jghali - fix sub menu translation issue when switching language

scribus-commit scribus-commit at lists.scribus.net
Tue Aug 19 13:37:45 UTC 2014


Author: jghali
Date: Tue Aug 19 13:37:45 2014
New Revision: 19438

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19438
Log:
fix sub menu translation issue when switching language

Modified:
    trunk/Scribus/scribus/menumanager.cpp

Modified: trunk/Scribus/scribus/menumanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19438&path=/trunk/Scribus/scribus/menumanager.cpp
==============================================================================
--- trunk/Scribus/scribus/menumanager.cpp (original)
+++ trunk/Scribus/scribus/menumanager.cpp Tue Aug 19 13:37:45 2014
@@ -157,6 +157,7 @@
 					if (menuStrings.contains(menuStrings[menuName].at(i)))
 					{
 						QMenu *subMenu=menuBarMenus[menuName]->addMenu(menuStringTexts[menuStrings[menuName].at(i)]);
+						menuBarMenus.insert(menuStrings[menuName].at(i), subMenu);
 						if (rememberedMenus.contains(menuStrings[menuName].at(i)))
 						{
 							rememberedMenus.insert(menuStrings[menuName].at(i), subMenu);
@@ -194,6 +195,7 @@
 						QMenu *subMenu=menuToAddTo->addMenu(menuStringTexts[menuStrings[menuName].at(i)]);
 						if (subMenu)
 						{
+							menuBarMenus.insert(menuStrings[menuName].at(i), subMenu);
 							if (rememberedMenus.contains(menuStrings[menuName].at(i)))
 							{
 								rememberedMenus.insert(menuStrings[menuName].at(i), subMenu);




More information about the scribus-commit mailing list