Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 43ef548d authored by Christoph Cullmann's avatar Christoph Cullmann

proper cleanup of splitters on session restore (if window already exists)

Differential Revision: https://phabricator.kde.org/D16688
parent a7ba6eb0
......@@ -1020,6 +1020,14 @@ void KateViewManager::restoreViewConfiguration(const KConfigGroup &config)
* delete mapping of now deleted views
*/
m_views.clear();
/**
* kill all previous existing sub-splitters, just to be sure
* e.g. important if one restores a config in an existing window with some splitters
*/
while (count() > 0) {
delete widget(0);
}
// reset lru history, too!
m_minAge = 0;
......
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