Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
6022033f
Commit
6022033f
authored
11 years ago
by
Doucet, Mathieu
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'origin/bugfix/7443_save_dialog_file_extension_bug'
parents
6822ad57
8cefe0e1
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Framework/DataHandling/src/SaveSPE.cpp
+1
-1
1 addition, 1 deletion
Code/Mantid/Framework/DataHandling/src/SaveSPE.cpp
Code/Mantid/MantidQt/API/src/FilePropertyWidget.cpp
+8
-1
8 additions, 1 deletion
Code/Mantid/MantidQt/API/src/FilePropertyWidget.cpp
with
9 additions
and
2 deletions
Code/Mantid/Framework/DataHandling/src/SaveSPE.cpp
+
1
−
1
View file @
6022033f
...
...
@@ -81,7 +81,7 @@ namespace Mantid
wsValidator
->
add
<
API
::
HistogramValidator
>
();
declareProperty
(
new
API
::
WorkspaceProperty
<>
(
"InputWorkspace"
,
""
,
Direction
::
Input
,
wsValidator
),
"The input workspace, which must be in Energy Transfer"
);
declareProperty
(
new
FileProperty
(
"Filename"
,
""
,
FileProperty
::
Save
),
declareProperty
(
new
FileProperty
(
"Filename"
,
""
,
FileProperty
::
Save
,
".spe"
),
"The filename to use for the saved data"
);
}
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/MantidQt/API/src/FilePropertyWidget.cpp
+
8
−
1
View file @
6022033f
...
...
@@ -169,15 +169,22 @@ namespace API
{
// Hack off the first star that the filter returns
QString
ext
=
selectedFilter
;
if
(
selectedFilter
.
startsWith
(
"*"
)
)
if
(
selectedFilter
.
startsWith
(
"*."
)
)
{
// 1 character from the start
ext
=
ext
.
remove
(
0
,
1
);
}
else
{
ext
=
""
;
}
if
(
filename
.
endsWith
(
"."
)
&&
ext
.
startsWith
(
"."
)
)
{
ext
=
ext
.
remove
(
0
,
1
);
}
// Construct the full file name
filename
+=
ext
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment