Merge pull request #8795 from ismailsunni/clean_shortcut_list

Remove empty action in shortcut configuration list.
This commit is contained in:
Alessandro Pasotti 2019-01-06 15:58:43 +01:00 committed by GitHub
commit c6b0ae0aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,11 @@ void QgsConfigureShortcutsDialog::populateActions()
continue;
}
if ( actionText.length() == 0 )
{
continue;
}
QStringList lst;
lst << actionText << sequence;
QTreeWidgetItem *item = new QTreeWidgetItem( lst );