changeset 100:6dc2c2adae08

No, don't show this dialog - it doesn't get positioned well, and I think it's a bit clumsy
author Chris Cannam
date Fri, 28 Feb 2020 13:21:51 +0000
parents de8552bfeadf
children 140d1e4f0cc2
files installer.cpp
diffstat 1 files changed, 6 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/installer.cpp	Fri Feb 28 13:15:35 2020 +0000
+++ b/installer.cpp	Fri Feb 28 13:21:51 2020 +0000
@@ -1083,24 +1083,17 @@
     vector<LibraryInfo> toInstall =
         getUserApprovedPluginLibraries(info, target);
     
+    if (toInstall.empty()) { // Cancelled, or nothing selected
+        SVCERR << "No libraries selected for installation, nothing to do"
+               << endl;
+        return 0;
+    }
+    
     QProgressDialog progress(QObject::tr("Installing..."),
                              QObject::tr("Stop"), 0,
                              int(toInstall.size()) + 1);
     progress.setMinimumDuration(0);
 
-    if (toInstall.empty()) { // Cancelled, or nothing selected
-        SVCERR << "No libraries selected for installation, nothing to do"
-               << endl;
-        progress.hide();
-        QMessageBox::information
-            (&progress,
-             QObject::tr("Nothing to do"),
-             QObject::tr("No libraries selected for installation"),
-             QMessageBox::Ok,
-             QMessageBox::Ok);
-        return 0;
-    }
-    
     int pval = 0;
     bool complete = true;