Improve confirmation dialog
authorDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 10:55:51 +0000 (11:55 +0100)
committerDaniel Klaffenbach <danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 10:55:51 +0000 (11:55 +0100)
Shows the new maximum frequency in the confirmation dialog.

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) {