X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Factioncollection.cpp;h=69b48c8c79e785e8f5d0a6f7ae7393432ebb4e08;hp=e34336cf1cfefad72f91db873cf89671172993bc;hb=a95ad2de573027f9bee36db972bcae4195168d0c;hpb=c1cf157116de7fc3da96203aa6f03c38c7ebb650 diff --git a/src/uisupport/actioncollection.cpp b/src/uisupport/actioncollection.cpp index e34336cf..69b48c8c 100644 --- a/src/uisupport/actioncollection.cpp +++ b/src/uisupport/actioncollection.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2020 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)