X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Factioncollection.cpp;h=765d7f89ee0bed4e20ce1776ed3f3c27b8fbaf27;hp=08141a8504d570e64b5f38e1c565c45d10fee787;hb=HEAD;hpb=cc6e7c08709c4e761e2fd9c2e322751015497003 diff --git a/src/uisupport/actioncollection.cpp b/src/uisupport/actioncollection.cpp index 08141a85..1b64b83f 100644 --- a/src/uisupport/actioncollection.cpp +++ b/src/uisupport/actioncollection.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -78,7 +78,7 @@ QAction* ActionCollection::addAction(const QString& name, QAction* action) else action->setObjectName(indexName); if (indexName.isEmpty()) - indexName = indexName.sprintf("unnamed-%p", (void*)action); + indexName = indexName.asprintf("unnamed-%p", (void*)action); // do we already have this action? if (_actionByName.value(indexName, 0) == action)