Bug 456782

Summary: "Save tab layout to file" makes meaningless file
Product: [Applications] konsole Reporter: Luke-Jr <luke-jr+kdebugs>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 22.04.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luke-Jr 2022-07-15 23:37:49 UTC
STEPS TO REPRODUCE
1.  On the menu, View->Save tab layout to file
2. Enter a filename and click OK

OBSERVED RESULT
File contains simply
{
    "Orientation": "Horizontal",
    "Widgets": [
        {
            "SessionRestoreId": 0
        }
    ]
}
no matter how many tabs are open.

EXPECTED RESULT
File should contain at least some data that could be useful for restoring them (without invisible local Konsole state that might be wiped on a clean OS reinstall)
Comment 1 Kurt Hindenburg 2022-09-26 23:38:21 UTC
This is not for tabs but for "splits" inside one tab.  Create a split, save it and then look at the json file.
Comment 2 Kurt Hindenburg 2022-10-30 17:54:07 UTC
Closing as I think there's some confusion about file - see my previous commit.

Perhaps not allow saving when there are no splits?