From 6e0d16c0b604591fe8b9fe9bdfcb01b07da3e035 Mon Sep 17 00:00:00 2001
From: inso <insomniak.fr@gmaiL.com>
Date: Mon, 11 Apr 2016 21:23:58 +0200
Subject: [PATCH] Fix crash when changing referential

---
 src/sakia/gui/mainwindow.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sakia/gui/mainwindow.py b/src/sakia/gui/mainwindow.py
index 09319982..20d159d4 100644
--- a/src/sakia/gui/mainwindow.py
+++ b/src/sakia/gui/mainwindow.py
@@ -79,7 +79,7 @@ class MainWindow(QObject):
 
         self.combo_referential = combo_referential
         self.combo_referential.setEnabled(False)
-        self.combo_referential.currentIndexChanged[str].connect(self.referential_changed)
+        self.combo_referential.currentIndexChanged[int].connect(self.referential_changed)
 
         self.homescreen = homescreen
 
@@ -201,7 +201,7 @@ class MainWindow(QObject):
                              error,
                              QMessageBox.Ok)
 
-    @pyqtSlot(str)
+    @pyqtSlot(int)
     def referential_changed(self, index):
         if self.account:
             self.account.set_display_referential(index)
-- 
GitLab