Commit a5d6224b authored by CABEL Tristan's avatar CABEL Tristan

order workspaces alphabetically

parent 4e8ded2e
......@@ -410,7 +410,9 @@ void dtkWidgetsWorkspaceBar::setCurrentIndex(int i)
void dtkWidgetsWorkspaceBar::buildFromFactory(void)
{
for (const QString &key: dtk::widgets::workspace::pluginFactory().keys()) {
auto list = dtk::widgets::workspace::pluginFactory().keys();
list.sort();
for (const QString &key: list) {
this->addWorkspaceInMenu(key);
}
}
......
Markdown is supported
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