From 0ed33b3b50af1456f0c40b68f46804b84cb5505b Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Fri, 20 Mar 2015 19:21:25 +0100
Subject: [PATCH] Fixed a bug when creating first account

---
 src/cutecoin/core/app.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py
index e68b9c28..4c4af5b9 100644
--- a/src/cutecoin/core/app.py
+++ b/src/cutecoin/core/app.py
@@ -99,7 +99,8 @@ class Application(QObject):
             self.loading_progressed.emit(value, maximum)
 
         if self.current_account is not None:
-            self.monitor.stop_watching()
+            if self.monitor:
+                self.monitor.stop_watching()
             self.save_cache(self.current_account)
         account.loading_progressed.connect(progressing)
         account.refresh_cache()
-- 
GitLab