]> Some of my projects - anidbudpclient.git/commitdiff
Possible fix for weird crash.
authorAPTX <marek321@gmail.com>
Thu, 12 Jan 2012 20:23:13 +0000 (21:23 +0100)
committerAPTX <marek321@gmail.com>
Thu, 12 Jan 2012 20:23:13 +0000 (21:23 +0100)
file.cpp

index 61f8bd9d2b0be50ace1b6c4cd0d9defddf8c0948..c1583b84cae8a64fcf1945df8da399c053f33a13 100644 (file)
--- a/file.cpp
+++ b/file.cpp
@@ -499,6 +499,9 @@ void File::startAdding()
                return;
        }
 
+       if (addingState() == InProgress)
+               return;
+
        if (m_lid)
        {
                updateStatus(Adding, Success);