Commit 099af312 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

switch to previous workspace when current one is deleted

parent a894a9a6
......@@ -227,6 +227,7 @@ void dtkWidgetsWorkspaceBarPrivate::createWorkspace(const QColor & color, const
this->items.takeAt(index);
if (index > 0) {
this->onItemClicked(index-1); // move to previous workspace before deleting this one
auto separator = this->separators.takeAt(index-1);
this->layout->removeWidget(separator);
delete separator;
......
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