Changeset 5469 in ntrip for trunk/GnssCenter/monitor
- Timestamp:
- Sep 18, 2013, 11:42:50 AM (11 years ago)
- Location:
- trunk/GnssCenter/monitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/dlgconf.cpp
r5466 r5469 29 29 t_settings settings(pluginName); 30 30 31 _hostLineEdit = new QLineEdit(settings.value("host").toString(), this); 31 QString host = settings.value("host").toString(); 32 if (host.isEmpty()) { 33 host = "localhost"; 34 } 35 _hostLineEdit = new QLineEdit(host, this); 32 36 _portLineEdit = new QLineEdit(settings.value("port").toString(), this); 33 37 … … 62 66 void t_dlgConf::accept() { 63 67 t_settings settings(pluginName); 64 settings.setValue("host", _hostLineEdit->text()); 68 QString host = _hostLineEdit->text(); 69 if (host.isEmpty()) { 70 host = "localhost"; 71 } 72 settings.setValue("host", host); 65 73 settings.setValue("port", _portLineEdit->text()); 66 74 QDialog::accept(); -
trunk/GnssCenter/monitor/monitor.cpp
r5457 r5469 97 97 t_settings settings(pluginName); 98 98 QString host = settings.value("host").toString(); 99 if (host.isEmpty()) { 100 host = "localhost"; 101 } 99 102 QString port = settings.value("port").toString(); 100 setWindowTitle(QString(pluginName) + " :" + host + ':' + port);103 setWindowTitle(QString(pluginName) + " " + host + ':' + port); 101 104 } 102 105 … … 115 118 t_settings settings(pluginName); 116 119 QString host = settings.value("host").toString(); 117 int port = settings.value("port").toInt(); 120 if (host.isEmpty()) { 121 host = "localhost"; 122 } 123 int port = settings.value("port").toInt(); 118 124 _thriftClient = new t_thriftClient(this, host, port); 119 125 connect(_thriftClient, SIGNAL(finished()), this, SLOT(slotThriftFinished()));
Note:
See TracChangeset
for help on using the changeset viewer.