changeset 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 8090a1bc1b5b
children 55cbe0a482ce
files ui/mainwindow.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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/