Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
09f3a40c
Commit
09f3a40c
authored
Aug 01, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup, operational
parent
b445c833
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
QGCCore.cc
src/QGCCore.cc
+2
-5
No files found.
src/QGCCore.cc
View file @
09f3a40c
...
...
@@ -91,7 +91,7 @@ QGCCore::QGCCore(bool firstStart, int &argc, char* argv[]) : QApplication(argc,
bool
upgraded
=
false
;
enum
MainWindow
::
CUSTOM_MODE
mode
=
MainWindow
::
CUSTOM_MODE_NONE
;
QString
lastApplicationVersion
(
""
);
if
(
settings
.
contains
(
"QGC_APPLICATION_VERSION"
)
&&
firstStart
)
if
(
settings
.
contains
(
"QGC_APPLICATION_VERSION"
))
{
QString
qgcVersion
=
settings
.
value
(
"QGC_APPLICATION_VERSION"
).
toString
();
if
(
qgcVersion
!=
QGC_APPLICATION_VERSION
)
...
...
@@ -161,8 +161,7 @@ QGCCore::QGCCore(bool firstStart, int &argc, char* argv[]) : QApplication(argc,
UDPLink
*
udpLink
=
NULL
;
//if (mainWindow->getCustomMode() == MainWindow::CUSTOM_MODE_WIFI)
if
(
settings
.
value
(
"QGC_CUSTOM_MODE"
,
(
unsigned
int
)
MainWindow
::
CUSTOM_MODE_NONE
)
==
MainWindow
::
CUSTOM_MODE_WIFI
)
if
(
mainWindow
->
getCustomMode
()
==
MainWindow
::
CUSTOM_MODE_WIFI
)
{
// Connect links
// to make sure that all components are initialized when the
...
...
@@ -216,7 +215,6 @@ QGCCore::~QGCCore()
if
(
welcome
)
{
welcome
->
close
();
delete
welcome
;
}
else
{
//mainWindow->storeSettings();
...
...
@@ -287,7 +285,6 @@ void QGCCore::startUASManager()
void
QGCCore
::
customViewModeSelected
(
enum
MainWindow
::
CUSTOM_MODE
mode
)
{
qDebug
()
<<
"SET MODE ="
<<
(
unsigned
int
)
mode
;
QSettings
settings
;
settings
.
setValue
(
"QGC_CUSTOM_MODE"
,
(
unsigned
int
)
mode
);
// Store settings only if requested by user
...
...
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