r22101 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Wed Jul 5 21:43:34 UTC 2017


Author: jghali
Date: Wed Jul  5 21:43:34 2017
New Revision: 22101

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22101
Log:
small optimization of PrefsManager::initDefaultActionKeys()

Modified:
    trunk/Scribus/scribus/prefsmanager.cpp

Modified: trunk/Scribus/scribus/prefsmanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22101&path=/trunk/Scribus/scribus/prefsmanager.cpp
==============================================================================
--- trunk/Scribus/scribus/prefsmanager.cpp	(original)
+++ trunk/Scribus/scribus/prefsmanager.cpp	Wed Jul  5 21:43:34 2017
@@ -517,11 +517,12 @@
 void PrefsManager::initDefaultActionKeys()
 {
 	ActionManager::createDefaultShortcuts();
-	QMap<QString, QKeySequence > *map=ActionManager::defaultShortcuts();
-	for( QMap<QString, QKeySequence >::ConstIterator it = map->begin(); it!=map->end(); ++it )
-	{
-		appPrefs.keyShortcutPrefs.KeyActions[it.key()].actionName = it.key();
-		appPrefs.keyShortcutPrefs.KeyActions[it.key()].keySequence = it.value();
+	QMap<QString, QKeySequence > *map = ActionManager::defaultShortcuts();
+	for (QMap<QString, QKeySequence >::ConstIterator it = map->begin(); it != map->end(); ++it)
+	{
+		Keys& keyAction = appPrefs.keyShortcutPrefs.KeyActions[it.key()];
+		keyAction.actionName = it.key();
+		keyAction.keySequence = it.value();
 	}
 }
 




More information about the scribus-commit mailing list