Ignore:
Timestamp:
Sep 18, 2013, 11:42:50 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/monitor.cpp

    r5457 r5469  
    9797  t_settings settings(pluginName);
    9898  QString host = settings.value("host").toString();
     99  if (host.isEmpty()) {
     100    host = "localhost";
     101  }
    99102  QString port = settings.value("port").toString();
    100   setWindowTitle(QString(pluginName) + ": " + host + ':' + port);
     103  setWindowTitle(QString(pluginName) + "  " + host + ':' + port);
    101104}
    102105
     
    115118    t_settings settings(pluginName);
    116119    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();
    118124    _thriftClient = new t_thriftClient(this, host, port);
    119125    connect(_thriftClient, SIGNAL(finished()), this, SLOT(slotThriftFinished()));
Note: See TracChangeset for help on using the changeset viewer.