emesene forum
July 31, 2010, 01:13:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: CACHE KEY ERRORS? NICK NOT SAVED? UPGRADE TO 1.6.2 FIRST!

REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Exception when clicking on try icon during a multichat  (Read 374 times)
cando
Hero Member
*****

l33tness: 4
Offline Offline

Posts: 324



View Profile WWW
« on: March 12, 2010, 02:43:25 AM »

Code:
  File "/home/cando/Scaricati/emesene/TrayIcon.py", line 222, in on_activate
    conv_window,conv = manager.getOpenConversation(self.last_mail, sb)

TypeError: 'NoneType' object is not iterable

When i click on trayicon during a multichat...
Logged

Computers are incredibly fast, accurate and stupid. Humans are incredibly slow, inaccurate and intelligent. Together they are a power that exceeds the imagination.(Albert Einstein)
arielj
Administrator
Hero Member
*****

l33tness: 30
Offline Offline

Posts: 1362


globitz!


View Profile Email
« Reply #1 on: March 12, 2010, 02:59:22 AM »

I can't reproduce it, does it happen always on your emesene?

I think that the only way to have that can be if you changed the number of members of the conversation while the tray icon was blinking (?), check ConversationManager's getOpenConversations method, I think that's the only case it would return None.
Logged
cando
Hero Member
*****

l33tness: 4
Offline Offline

Posts: 324



View Profile WWW
« Reply #2 on: March 12, 2010, 05:10:05 AM »

Ok..i'll check it asap....Thanks..
Logged

Computers are incredibly fast, accurate and stupid. Humans are incredibly slow, inaccurate and intelligent. Together they are a power that exceeds the imagination.(Albert Einstein)
arielj
Administrator
Hero Member
*****

l33tness: 30
Offline Offline

Posts: 1362


globitz!


View Profile Email
« Reply #3 on: March 12, 2010, 07:42:26 AM »

I think I'll move that method to get the last conversation to ConversationManager, it's more logical Tongue and I think that the ConvManager can make that easier. I'll try to move it and tell you

EDIT: try latest svn, it's a lot cleaner now and easier and it should work on any case!
« Last Edit: March 12, 2010, 08:10:50 AM by arielj » Logged
cando
Hero Member
*****

l33tness: 4
Offline Offline

Posts: 324



View Profile WWW
« Reply #4 on: March 12, 2010, 02:24:41 PM »

now i don't get the exception when i click on blinking trayicon after the number change of members in the conversation...
but the conversation doesn't "pop-up" (the click simply does nothing)! Undecided
Logged

Computers are incredibly fast, accurate and stupid. Humans are incredibly slow, inaccurate and intelligent. Together they are a power that exceeds the imagination.(Albert Einstein)
arielj
Administrator
Hero Member
*****

l33tness: 30
Offline Offline

Posts: 1362


globitz!


View Profile Email
« Reply #5 on: March 12, 2010, 03:12:05 PM »

that's weird it's working here :S, let me test it a little more, but it should always show some conversation

can you check on trayIcon's method "on_activate" if you have this code?
Code:
    def on_activate( self, status_icon ):
        if self.tray.get_blinking():
            conv = self.controller.conversationManager.newest_message_conv
            conv_window = conv.parentConversationWindow

            if conv_window.get_urgency_hint():
                if conv_window.tabs.get_show_tabs():
                    conv_window.showTab(conv_window.tabs.page_num(conv.ui))
            conv_window.present()
        else:
            self.showHide()

It should get the last conversation that received a message from conversationManager and it will have a parentWindow and the "conv_window.present()" should make the window to popup wherever it is... the if is only for conversation windows that has tabs (to select the right tab befor showing the window), but the window that contains all of them should be displayed anyway

Maybe it's not reaching that point? (?) It's working ok here :S
« Last Edit: March 12, 2010, 03:30:43 PM by arielj » Logged
cando
Hero Member
*****

l33tness: 4
Offline Offline

Posts: 324



View Profile WWW
« Reply #6 on: March 13, 2010, 01:23:32 AM »

sorry..now it works....i've tried lots of time and it works !I don't know what i've done yesterday...however now it works like a charm.... Grin..
Logged

Computers are incredibly fast, accurate and stupid. Humans are incredibly slow, inaccurate and intelligent. Together they are a power that exceeds the imagination.(Albert Einstein)
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!