From: Daniel Klaffenbach Date: Tue, 13 Jul 2010 20:03:36 +0000 (+0200) Subject: Do not allow maxfreq < minfreq X-Git-Tag: v0.3.1~3 X-Git-Url: http://vcs.maemo.org/git/?p=qcpufreq;a=commitdiff_plain;h=de6b18aec56639d3780605d2e3d1ac52ca9d34e4 Do not allow maxfreq < minfreq --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index faf34e4..4af5dca 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -105,6 +105,11 @@ void MainWindow::adjustFreq() { int newmax = getScalingFreq( ui->freq_adjust->sliderPosition() ); QString max; + + //maxfreq should not be smaller than minfreq, because we do not want to decrease minfreq + if (newmax < getMinFreq()) + newmax = getMinFreq(); + max.setNum( newmax ); callHelper( "set_maxfreq", max );