Refuse to save invalid layouts
Now layout saver won't save if the root ItemContainer::checkSanity() is false
This commit is contained in:
@@ -234,6 +234,9 @@ bool DockRegistry::isSane() const
|
||||
} else {
|
||||
names.insert(name);
|
||||
}
|
||||
|
||||
if (!mainwindow->multiSplitterLayout()->checkSanity())
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user