1
0
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:
PT_Dreamer 2012-09-10 19:44:20 +01:00
parent 78a4241ba2
commit 09f950ff76
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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);