From 6f5f23f369afc8092028d78332858ae04e803f4e Mon Sep 17 00:00:00 2001 From: Nikita Sirgienko Date: Sun, 25 Mar 2018 17:57:07 +0200 Subject: [PATCH] Fix incapacity open *.cws files Summary: File filter was incorrect (there wasn't space between '.cws' and '|' symbol), and didn't recognizing `*.cws` files, so there weren't possibility for users to open any saved files, if they could not specify the file name directly (availability of this feature depends of the particular 'Open File' dialog window). Test Plan: 1) Write some worksheet (for example, with lua backend) 2) Save as worksheet with file extention `.cws` (for example `foo.cws`) 3) Try to open, using 'Open File' dialog. Reviewers: #cantor, asemke Reviewed By: #cantor, asemke Subscribers: aacid, #cantor, #kde_edu Tags: #kde_edu, #cantor Differential Revision: https://phabricator.kde.org/D11528 --- src/cantor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cantor.cpp b/src/cantor.cpp index 29e42d7..67ccc1b 100644 --- a/src/cantor.cpp +++ b/src/cantor.cpp @@ -175,7 +175,7 @@ void CantorShell::fileOpen() // this slot is called whenever the File->Open menu is selected, // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar // button is clicked - QUrl url = QFileDialog::getOpenFileUrl(this, i18n("Open file"), QUrl(), i18n("*.cws|Cantor Worksheet")); + QUrl url = QFileDialog::getOpenFileUrl(this, i18n("Open file"), QUrl(), i18n("Cantor Worksheet (*.cws)")); if (url.isEmpty() == false) { -- 2.7.4