Connect and disconnect our signals correctly.

Capture still doesn't work correctly under Windows.

svn path=/trunk/; revision=44717
This commit is contained in:
Gerald Combs 2012-08-31 23:18:45 +00:00
parent cf4ac2931e
commit 3751353a70
1 changed files with 2 additions and 2 deletions

View File

@ -239,12 +239,12 @@ void MainWindow::setPipeInputHandler(gint source, gpointer user_data, int *child
/*g_log(NULL, G_LOG_LEVEL_DEBUG, "pipe_input_set_handler: new");*/ /*g_log(NULL, G_LOG_LEVEL_DEBUG, "pipe_input_set_handler: new");*/
if (pipe_timer_) { if (pipe_timer_) {
disconnect(pipe_timer_, SIGNAL(timeout), this, SLOT(pipeTimeout)); disconnect(pipe_timer_, SIGNAL(timeout()), this, SLOT(pipeTimeout()));
delete pipe_timer_; delete pipe_timer_;
} }
pipe_timer_ = new QTimer(this); pipe_timer_ = new QTimer(this);
connect(pipe_timer_, SIGNAL(timeout), this, SLOT(pipeTimeout)); connect(pipe_timer_, SIGNAL(timeout()), this, SLOT(pipeTimeout()));
pipe_timer_->start(200); pipe_timer_->start(200);
#else #else
if (pipe_notifier_) { if (pipe_notifier_) {