Commit 3c3ab5fb authored by Matt Edman's avatar Matt Edman
Browse files

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.


svn:r451
parent ed03e8f2
Loading
Loading
Loading
Loading
+9 −1
Changes for src/gui/config/configdialog.cpp: 9 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -236,7 +236,15 @@ void
ConfigDialog::getServerPublicIP()
{
  QString ip;
  if (net_get_public_ip(ip)) {
  bool success;

  /* This could take a bit, so show the wait cursor. */
  QApplication::setOverrideCursor(Qt::WaitCursor);
  success = net_get_public_ip(ip);
  QApplication::restoreOverrideCursor();
  
  /* Handle the result */
  if (success) {
    ui.lineServerAddress->setText(ip);
  } else {
    QMessageBox::warning(this, tr("Error"),