# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2016-03-22 18:04:43 # Node ID f93a2d942980a1acbc0be90acfe258bc7dc23aca # Parent 10c58812dac54a7adfd32badc8a0d74687360b5b suppress signed unsigned comparison warning diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -378,7 +378,7 @@ void MainWindow::onChannelNameChanged(un // This slot is triggered also when a new channel is added, in // this case curve list doesn't contain said channel. No worries, // since `onNumOfChannelsChanged` slot will update curve list. - if (channel < curves.size()) // check if channel exists in curve list + if ((int) channel < curves.size()) // check if channel exists in curve list { curves[channel]->setTitle(name); ui->plot->replot();