src/mainwindow.cpp

changeset 1433
bd3a9e237ef5
parent 1432
4cc687851fbb
child 1435
b8dc3620e5db
--- a/src/mainwindow.cpp	Wed Dec 26 16:38:38 2018 +0200
+++ b/src/mainwindow.cpp	Wed Dec 26 23:01:45 2018 +0200
@@ -757,21 +757,6 @@
 
 // ---------------------------------------------------------------------------------------------------------------------
 //
-void MainWindow::saveShortcuts()
-{
-	applyToActions([&](QAction* action)
-	{
-		QString const key = "shortcut_" + action->objectName();
-
-		if (m_defaultShortcuts[action] != action->shortcut())
-			settingsObject().setValue(key, action->shortcut());
-		else
-			settingsObject().remove(key);
-	});
-}
-
-// ---------------------------------------------------------------------------------------------------------------------
-//
 void MainWindow::applyToActions(function<void(QAction*)> function)
 {
 	for (QAction* act : findChildren<QAction*>())

mercurial