mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
GCS Fixes -clean-config command line argument segfault
This commit is contained in:
parent
78a4241ba2
commit
09f950ff76
@ -60,7 +60,7 @@ static const char *fixedOptionsC =
|
||||
" -clean-config Delete all existing configuration settings\n"
|
||||
" -exit-after-config Exit GCS after manipulating configuration settings\n"
|
||||
" -D key=value Override configuration settings e.g: -D General/OverrideLanguage=de\n"
|
||||
" -config=value Default configuration file to load if settings file is empty\n";
|
||||
" -configfile=value Default configuration file to load if settings file is empty\n";
|
||||
static const char *HELP_OPTION1 = "-h";
|
||||
static const char *HELP_OPTION2 = "-help";
|
||||
static const char *HELP_OPTION3 = "/h";
|
||||
|
@ -273,7 +273,7 @@ void MainWindow::extensionsInitialized()
|
||||
if ( ! qs->allKeys().count() ){
|
||||
foreach(QString str,qApp->arguments())
|
||||
{
|
||||
if(str.contains("config"))
|
||||
if(str.contains("configfile"))
|
||||
{
|
||||
qDebug()<<"ass";
|
||||
commandLine=str.split("=").at(1);
|
||||
|
Loading…
Reference in New Issue
Block a user