diff ui/mainwindow.cpp @ 393:ae2ef965a41b

Provide installer with old list in case there are no news
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 20:27:26 +0200
parents 3be838c3e4d8
children 17e1c8f37d72
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Tue Apr 15 20:26:42 2014 +0200
+++ b/ui/mainwindow.cpp	Tue Apr 15 20:27:26 2014 +0200
@@ -492,7 +492,9 @@
     progress->show();
 
     InstallWrapper *instWrap = new InstallWrapper(this,
-                                                  mListToInstall.fileName(),
+                                                  mListToInstall.isValid() ?
+                                                  mListToInstall.fileName() :
+                                                  mInstalledList.fileName(),
                                                   choices);
     /* Clean up object and progress dialog */
     connect(instWrap, SIGNAL(finished()), instWrap, SLOT(deleteLater()));

http://wald.intevation.org/projects/trustbridge/