Commit e236d194 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Removing initializer-list creation of QList to fix Windows build.

parent 0d0795d4
Pipeline #14553 passed with stages
in 7 minutes and 30 seconds
#include "radixwidgets/navigationactionmanager.hh"
#include <QHash>
#include <QList>
#include <QMenu>
#include "radixbug/bug.hh"
......@@ -29,7 +30,9 @@ void NavigationActionManager::registerAction(NavigationItem *item, QString text,
if (item_it == p->item_functions.end())
// create a new reference
p->item_functions.insert(item, {std::make_pair(text, functor)});
QList<std::pair<QString, std::function<void()>>> list;
list.append(std::make_pair(text, functor));
p->item_functions.insert(item, list);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment