comparison mainwindow.cpp @ 25:eba979148fb3

Listens on only the interface/port that messagebox announces.
author Jari Korhonen <jtkorhonen@gmail.com>
date Wed, 19 May 2010 23:08:42 +0300
parents bb93f0593aeb
children 6e8cd5ffa4df
comparison
equal deleted inserted replaced
24:bb93f0593aeb 25:eba979148fb3
581 QStringList params; 581 QStringList params;
582 QString msg; 582 QString msg;
583 583
584 QString addr = findMyIp(); 584 QString addr = findMyIp();
585 QTextStream(&msg) << "Server running on http://" << addr << ":8000/"; 585 QTextStream(&msg) << "Server running on http://" << addr << ":8000/";
586 params << "serve"; 586 params << "serve" << "--address" << addr << "--port" << "8000";
587 587
588 runner -> startProc(getHgBinaryName(), workFolderPath, params, false); 588 runner -> startProc(getHgBinaryName(), workFolderPath, params, false);
589 runningAction = ACT_SERVE; 589 runningAction = ACT_SERVE;
590 590
591 QMessageBox::information(this, "Serve", msg, QMessageBox::Close); 591 QMessageBox::information(this, "Serve", msg, QMessageBox::Close);