Improve confirmation dialog
[qcpufreq] / src / mainwindow.cpp
index e71837f..8cfd5ee 100644 (file)
@@ -151,8 +151,10 @@ void MainWindow::adjustFreq()
         box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel);
         box.setDefaultButton(QMessageBox::Apply);
         box.setIcon(QMessageBox::Question);
-        box.setText(tr("The frequency changed."));
-        box.setInformativeText("Do you want to use ? as new default frequency?");
+        box.setText(tr("You have requested to change the maximum frequency."));
+        QString verboseMax;
+        verboseMax.setNum( newmax/1000 );
+        box.setInformativeText( tr("Do you really want to use %1 MHz as the new maximum frequency?").arg(verboseMax) );
         int ret = box.exec();
 
         if (ret != QMessageBox::Apply) {