Changeset 4491 in ntrip


Ignore:
Timestamp:
Aug 4, 2012, 8:55:16 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmain.cpp

    r4490 r4491  
    8989      displaySet = true;
    9090      if (QRegExp("--display").exactMatch(argv[ii])) {
    91         argv[ii] = "-display";
     91        strcpy(argv[ii], "-display");
    9292      }
    9393    }
     
    113113#endif
    114114
    115 #ifdef Q_WS_X11
    116   bool GUIenabled = getenv("DISPLAY") != 0;
    117 #else
    118   bool GUIenabled = true;
    119 #endif
    120  
     115  bool GUIenabled = interactive || displaySet;
    121116  bncApp app(argc, argv, GUIenabled);
    122117
Note: See TracChangeset for help on using the changeset viewer.