- Timestamp:
- Jul 29, 2012, 2:42:11 PM (12 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncapp.cpp
r4346 r4447 61 61 QApplication(argc, argv, GUIenabled) { 62 62 63 _GUIenabled = GUIenabled; 63 64 _logFileFlag = 0; 64 65 _logFile = 0; -
trunk/BNC/src/bncapp.h
r4346 r4447 64 64 QWidget* mainWindow() const {return _mainWindow;}; 65 65 void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;} 66 bool GUIenabled() const {return _GUIenabled;} 66 67 protected: 67 68 virtual bool event(QEvent* ev); … … 137 138 e_mode _mode; 138 139 QWidget* _mainWindow; 140 bool _GUIenabled; 139 141 public: 140 142 bncPPPclient* _bncPPPclient; -
trunk/BNC/src/bncmain.cpp
r4446 r4447 106 106 107 107 #ifdef Q_WS_X11 108 bool useGUI= getenv("DISPLAY") != 0;108 bool GUIenabled = getenv("DISPLAY") != 0; 109 109 #else 110 bool useGUI= true;110 bool GUIenabled = true; 111 111 #endif 112 112 113 bncApp app(argc, argv, useGUI);113 bncApp app(argc, argv, GUIenabled); 114 114 115 115 app.setApplicationName("BNC");
Note:
See TracChangeset
for help on using the changeset viewer.