fix(workspaces): order

This commit is contained in:
Alex 2019-05-20 13:31:02 +02:00
parent 7c4d75d428
commit 071b4928dc

View File

@ -83,8 +83,8 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
if (workspaces_order_.empty()) {
// Saving starting order
workspaces_order_.reserve(workspaces_.size());
for (const Json::Value &workspace : workspaces_) {
workspaces_order_.reserve(payload.size());
for (const Json::Value &workspace : payload) {
workspaces_order_.emplace_back(workspace["name"].asString());
}
} else {