[PATCH 2 of 4] Remove unused state. Only confusing the state model

Wald Commits scm-commit at wald.intevation.org
Wed Sep 24 15:51:19 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411566514 -7200
# Node ID dc1941e043730594c34160d051dc5e304b9840e7
# Parent  05b938021a24cb13345cecf856a032a0aaa31951
Remove unused state. Only confusing the state model.

diff -r 05b938021a24 -r dc1941e04373 ui/mainwindow.cpp
--- a/ui/mainwindow.cpp	Wed Sep 24 15:26:26 2014 +0200
+++ b/ui/mainwindow.cpp	Wed Sep 24 15:48:34 2014 +0200
@@ -512,7 +512,6 @@
     connect(downloader, SIGNAL(newListAvailable(const QString&, const QDateTime&)),
             this, SLOT(handleNewList(const QString&, const QDateTime&)));
     if (!downloadSW) {
-        setState(BeforeDownload);
         connect(downloader, SIGNAL(newSoftwareAvailable(const QString&, const QDateTime&)),
                 this, SLOT(handleNewSW(const QString&, const QDateTime&)));
     } else {
diff -r 05b938021a24 -r dc1941e04373 ui/mainwindow.h
--- a/ui/mainwindow.h	Wed Sep 24 15:26:26 2014 +0200
+++ b/ui/mainwindow.h	Wed Sep 24 15:48:34 2014 +0200
@@ -68,7 +68,6 @@
      * @brief The internal state of the application
      */
     enum CurrentState {
-        BeforeDownload, /*! Initial state before a connection is tried. */
         NewListAvailable, /*! A new certificate list is available. */
         NewSoftwareAvailable, /*! A new Software is avaialable. */
         DownloadingSW, /*! Download in progress. */


More information about the Trustbridge-commits mailing list