]> Some of my projects - anidbudpclient.git/commitdiff
Fix updateState logic in File.
authorAPTX <marek321@gmail.com>
Sun, 13 Feb 2011 13:47:21 +0000 (14:47 +0100)
committerAPTX <marek321@gmail.com>
Sun, 13 Feb 2011 13:47:21 +0000 (14:47 +0100)
file.cpp

index 624acb90273535ca2c0002a1f99272cb96304241..4c9377aac6b568200f9c796b033c844cf3f1b6a1 100644 (file)
--- a/file.cpp
+++ b/file.cpp
@@ -355,13 +355,15 @@ qDebug() << "Next work:" << a;
 
 void File::workOnFinished(Action action, ActionState actionState)
 {
-       Q_UNUSED(action);
-
        switch (actionState)
        {
                case Success:
                case Failure:
                        work();
+               break;
+               case Finished:
+                       if (action == SettingState)
+                               work();
                default:
                break;
        }
@@ -483,7 +485,7 @@ void File::startMarking()
 
 void File::startSetState()
 {
-       if (!canContinue(m_markingState))
+       if (!canContinue(m_settingStateState))
        {
                work();
                return;