]> git.sur5r.net Git - minitube/blobdiff - src/downloadmanager.cpp
Imported Upstream version 1.6
[minitube] / src / downloadmanager.cpp
index d71185ba3c50df9f8565aa736e27e3eea3e4d0fa..f7267b393c2383f634b78c2a5ec50e7f76a60635 100644 (file)
@@ -44,7 +44,7 @@ void DownloadManager::addItem(Video *video) {
     if (video->duration() >= 60*4) {
         QMessageBox msgBox(dynamic_cast<QWidget*>(parent())->window());
         msgBox.setIconPixmap(QPixmap(":/images/app.png").scaled(64, 64, Qt::KeepAspectRatio, Qt::SmoothTransformation));
-        msgBox.setText(tr("This is just the demo version of %1.").arg(Constants::APP_NAME));
+        msgBox.setText(tr("This is just the demo version of %1.").arg(Constants::NAME));
         msgBox.setInformativeText(
                 tr("It can only download videos shorter than %1 minutes so you can test the download functionality.")
                 .arg(4));
@@ -52,13 +52,13 @@ void DownloadManager::addItem(Video *video) {
         // make it a "sheet" on the Mac
         msgBox.setWindowModality(Qt::WindowModal);
 
-        QPushButton *quitButton = msgBox.addButton(tr("Continue"), QMessageBox::RejectRole);
+        msgBox.addButton(tr("Continue"), QMessageBox::RejectRole);
         QPushButton *buyButton = msgBox.addButton(tr("Get the full version"), QMessageBox::ActionRole);
 
         msgBox.exec();
 
         if (msgBox.clickedButton() == buyButton) {
-            QDesktopServices::openUrl(QString(Constants::WEBSITE) + "#download");
+            QDesktopServices::openUrl(QUrl(QString(Constants::WEBSITE) + "#download"));
         }
 
         return;