r24158 by jghali - #16302: addMenuStringToMenuBar() does not use the menu label in the menu

scribus-commit scribus-commit at lists.scribus.net
Tue Nov 3 10:09:54 UTC 2020


Author: jghali
Date: Tue Nov  3 10:09:54 2020
New Revision: 24158

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24158
Log:
#16302: addMenuStringToMenuBar() does not use the menu label in the menu

Modified:
    trunk/Scribus/scribus/menumanager.cpp

Modified: trunk/Scribus/scribus/menumanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24158&path=/trunk/Scribus/scribus/menumanager.cpp
==============================================================================
--- trunk/Scribus/scribus/menumanager.cpp	(original)
+++ trunk/Scribus/scribus/menumanager.cpp	Tue Nov  3 10:09:54 2020
@@ -111,18 +111,18 @@
 		return false;
 
 	QList<QAction*> mba = scribusMenuBar->actions();
-	QAction* beforeAct=nullptr;
+	QAction* beforeAct = nullptr;
 	foreach (beforeAct, mba)
 	{
-		if (beforeMenuName==beforeAct->text().remove('&').remove("..."))
+		if (beforeMenuName == beforeAct->text().remove('&').remove("..."))
 			break;
 	}
 	if (beforeAct)
 	{
-		auto *m=new QMenu(menuName);
+		auto *m = new QMenu(menuStringTexts[menuName]);
 		scribusMenuBar->insertMenu(beforeAct, m);
 		menuBarMenus.insert(menuName, m);
-		retVal=true;
+		retVal = true;
 	}
 	return retVal;
 }




More information about the scribus-commit mailing list