Skip to content
Snippets Groups Projects
Commit fc70417d authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix bug in import account

parent 179430bc
Branches
Tags
No related merge requests found
...@@ -297,7 +297,7 @@ class Application(QObject): ...@@ -297,7 +297,7 @@ class Application(QObject):
data = json.load(json_data) data = json.load(json_data)
account = Account.load(data) account = Account.load(data)
account.name = name account.name = name
self.accounts.append(account) self.add_account(account)
self.save(account) self.save(account)
def export_account(self, file, account): def export_account(self, file, account):
......
...@@ -15,9 +15,6 @@ qapplication = QApplication(sys.argv) ...@@ -15,9 +15,6 @@ qapplication = QApplication(sys.argv)
class MainWindowTest(unittest.TestCase): class MainWindowTest(unittest.TestCase):
first_setup = True
def setUp(self): def setUp(self):
QLocale.setDefault(QLocale("en_GB")) QLocale.setDefault(QLocale("en_GB"))
self.application = Application(sys.argv) self.application = Application(sys.argv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment