Changeset 451

Show
Ignore:
Timestamp:
03/19/06 23:21:24 (3 years ago)
Author:
edmanm
Message:

Asking for our public IP could take a bit, so show the wait cursor while we're
busy otherwise it looks like the interface is just hanging.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/config/configdialog.cpp

    r423 r451  
    237237{ 
    238238  QString ip; 
    239   if (net_get_public_ip(ip)) { 
     239  bool success; 
     240 
     241  /* This could take a bit, so show the wait cursor. */ 
     242  QApplication::setOverrideCursor(Qt::WaitCursor); 
     243  success = net_get_public_ip(ip); 
     244  QApplication::restoreOverrideCursor(); 
     245   
     246  /* Handle the result */ 
     247  if (success) { 
    240248    ui.lineServerAddress->setText(ip); 
    241249  } else {