Skip to content
Commit adff6e88 authored by Nikita Sirgienko's avatar Nikita Sirgienko Committed by Albert Astals Cid
Browse files

Add worksheet extension (.cws) to name of saved file, if user haven't added it youself.

Summary: It's a little uncomfortable, that when we save cantor worksheet file with name like 'foo' and saved name also have name 'foo', because we use file filter in open file dialog and our 'foo' file will be filtered. So I have added check, that if extension for saved worksheet file don't specify, then we append it.

Test Plan:
1) Create worksheet
2) Save it with name `foo` as Cantor worksheet
3) Check that the file have name `foo.cws`

1) Create worksheet
2) Save it with name `foo.cws` as Cantor worksheet
3) Check that the file have name `foo.cws`

Reviewers: #cantor, asemke

Reviewed By: #cantor, asemke

Subscribers: aacid, asemke, #cantor, #kde_edu

Tags: #kde_edu, #cantor

Differential Revision: https://phabricator.kde.org/D11701
parent 00f83d23
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