r20287 by craig - #13227: Fix actions not receiving new tooltips after language change
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 27 21:26:09 UTC 2015
Author: craig
Date: Mon Jul 27 21:26:09 2015
New Revision: 20287
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20287
Log:
#13227: Fix actions not receiving new tooltips after language change
Modified:
trunk/Scribus/scribus/actionmanager.cpp
Modified: trunk/Scribus/scribus/actionmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20287&path=/trunk/Scribus/scribus/actionmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/actionmanager.cpp (original)
+++ trunk/Scribus/scribus/actionmanager.cpp Mon Jul 27 21:26:09 2015
@@ -1804,6 +1804,13 @@
//////
languageChangeUnicodeActions(scrActions);
languageChangeActions();
+
+ //Reset tooltips on actions after the translation process
+ for( QMap<QString, QPointer<ScrAction> >::Iterator it = scrActions->begin(); it!=scrActions->end(); ++it )
+ {
+ if ((*it)!=NULL)
+ (*it)->setToolTipFromTextAndShortcut();
+ }
}
void ActionManager::languageChangeUnicodeActions(QMap<QString, QPointer<ScrAction> > *actionMap)
More information about the scribus-commit
mailing list