From 3f1bddb3cd25c309fd61def69aeba001aa59eb24 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 27 Feb 2016 19:22:34 +0300 Subject: [PATCH] tests fix 2 --- src/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/profile.py b/src/profile.py index e032ef0..c71086f 100644 --- a/src/profile.py +++ b/src/profile.py @@ -1,4 +1,4 @@ -from mainscreen import * +import mainscreen from settings import Settings from PySide import QtCore, QtGui import os @@ -167,7 +167,7 @@ class Profile(Contact): def newMessage(self, id, message_type, message): if id == self._active_friend: # add message to list user_name = Profile.getInstance().getActiveName() - item = MessageItem(message, curr_time(), user_name) + item = mainscreen.MessageItem(message, curr_time(), user_name) elem = QtGui.QListWidgetItem(self._messages) print item.sizeHint() elem.setSizeHint(QtCore.QSize(500, 100))