Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
a3025df5
Commit
a3025df5
authored
9 years ago
by
Diego F. Asanza
Browse files
Options
Download
Email Patches
Plain Diff
add file-name (.dsl) extension when saving files with extension missing
parent
b8294c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
DSView/pv/toolbars/filebar.cpp
DSView/pv/toolbars/filebar.cpp
+4
-1
No files found.
DSView/pv/toolbars/filebar.cpp
View file @
a3025df5
...
...
@@ -129,10 +129,13 @@ void FileBar::on_actionSave_triggered()
msg
.
setIcon
(
QMessageBox
::
Warning
);
msg
.
exec
();
}
else
{
const
QString
file_name
=
QFileDialog
::
getSaveFileName
(
QString
file_name
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Save File"
),
""
,
tr
(
"DSView Session (*.dsl)"
));
if
(
!
file_name
.
isEmpty
())
{
QFileInfo
f
(
file_name
);
if
(
f
.
suffix
().
compare
(
"dsl"
))
file_name
.
append
(
tr
(
".dsl"
));
_session
.
save_file
(
file_name
.
toStdString
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment