Changeset 5469 in ntrip for trunk/GnssCenter/monitor/dlgconf.cpp
- Timestamp:
- Sep 18, 2013, 11:42:50 AM (11 years ago)
- File:
-
- 1 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();
Note:
See TracChangeset
for help on using the changeset viewer.