Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b17a8c67
Commit
b17a8c67
authored
Apr 30, 2015
by
Don Gagne
Browse files
Fix url formation
parent
0e63bc31
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ViewWidgets/CustomCommandWidgetController.cc
View file @
b17a8c67
...
...
@@ -27,6 +27,7 @@
#include
"QGCFileDialog.h"
#include
<QSettings>
#include
<Qurl>
const
char
*
CustomCommandWidgetController
::
_settingsKey
=
"CustomCommand.QmlFile"
;
...
...
@@ -64,7 +65,8 @@ void CustomCommandWidgetController::selectQmlFile(void)
_customQmlFile
.
clear
();
settings
.
remove
(
_settingsKey
);
}
else
{
_customQmlFile
=
QString
(
"file:%1"
).
arg
(
qmlFile
);
QUrl
url
=
QUrl
::
fromLocalFile
(
qmlFile
);
_customQmlFile
=
url
.
toString
();
settings
.
setValue
(
_settingsKey
,
_customQmlFile
);
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment