Changeset 5470 in ntrip
- Timestamp:
- Sep 18, 2013, 11:52:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5469 r5470 101 101 } 102 102 QString port = settings.value("port").toString(); 103 setWindowTitle(QString(pluginName) + " " + host + ':' + port); 103 if (port.isEmpty()) { 104 setWindowTitle(QString(pluginName)); 105 _actStartThrift->setEnabled(false); 106 _actStopThrift->setEnabled(false); 107 } 108 else { 109 _actStartThrift->setEnabled(true); 110 _actStopThrift->setEnabled(true); 111 setWindowTitle(QString(pluginName) + " " + host + ':' + port); 112 } 104 113 } 105 114 … … 116 125 void t_monitor::slotStartThrift() { 117 126 if (!_thriftClient) { 127 _actConfig->setEnabled(false); 128 _actStartThrift->setEnabled(false); 129 _actStopThrift->setEnabled(true); 118 130 t_settings settings(pluginName); 119 131 QString host = settings.value("host").toString(); … … 133 145 void t_monitor::slotStopThrift() { 134 146 if (_thriftClient) { 147 _actConfig->setEnabled(true); 148 _actStartThrift->setEnabled(true); 149 _actStopThrift->setEnabled(false); 135 150 _thriftClient->stop(); 136 151 _thriftClient = 0;
Note:
See TracChangeset
for help on using the changeset viewer.